From: Chris Lattner Date: Tue, 9 May 2006 16:41:59 +0000 (+0000) Subject: Fix a regression in my patch from last night that broke the llvmgcc4 build on X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=c8d37c6e140dcddfc2d841ccd0a0924030ce15f8;p=oota-llvm.git Fix a regression in my patch from last night that broke the llvmgcc4 build on ppc git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28205 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter.cpp index d95b6911927..db677939248 100644 --- a/lib/CodeGen/AsmPrinter.cpp +++ b/lib/CodeGen/AsmPrinter.cpp @@ -68,7 +68,7 @@ void AsmPrinter::SwitchToTextSection(const char *NewSection, const GlobalValue *GV) { std::string NS; if (GV && GV->hasSection()) - NS = GV->getSection(); + NS = SwitchToSectionDirective + GV->getSection(); else NS = NewSection;