Fix a regression in my patch from last night that broke the llvmgcc4 build on
authorChris Lattner <sabre@nondot.org>
Tue, 9 May 2006 16:41:59 +0000 (16:41 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 9 May 2006 16:41:59 +0000 (16:41 +0000)
ppc

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28205 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/AsmPrinter.cpp

index d95b6911927f0f60bd648920f50ebfbeff978023..db677939248d63fed3adc56e7e3a52666e5f309e 100644 (file)
@@ -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;