[llvm-commits] [llvm] r56570 - /llvm/trunk/lib/Target/CellSPU/SPUAsmPrinter.cpp

Anton Korobeynikov asl at math.spbu.ru
Wed Sep 24 15:11:43 PDT 2008


Author: asl
Date: Wed Sep 24 17:11:42 2008
New Revision: 56570

URL: http://llvm.org/viewvc/llvm-project?rev=56570&view=rev
Log:
SPU section handling is really huge mess. Replace remaining TAI calls for sections with explicit names in order not to block existing backends during section handling migration. SPU folks! Please consider using new section handling facility someday.

Modified:
    llvm/trunk/lib/Target/CellSPU/SPUAsmPrinter.cpp

Modified: llvm/trunk/lib/Target/CellSPU/SPUAsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/CellSPU/SPUAsmPrinter.cpp?rev=56570&r1=56569&r2=56570&view=diff

==============================================================================
--- llvm/trunk/lib/Target/CellSPU/SPUAsmPrinter.cpp (original)
+++ llvm/trunk/lib/Target/CellSPU/SPUAsmPrinter.cpp Wed Sep 24 17:11:42 2008
@@ -486,7 +486,7 @@
 
 bool LinuxAsmPrinter::doInitialization(Module &M) {
   bool Result = AsmPrinter::doInitialization(M);
-  SwitchToTextSection(TAI->getTextSection());
+  SwitchToTextSection("\t.text");
   // Emit initial debug information.
   DW.BeginModule(&M);
   MMI = getAnalysisToUpdate<MachineModuleInfo>();
@@ -556,7 +556,7 @@
         if (I->isConstant()) {
           const ConstantArray *CVA = dyn_cast<ConstantArray>(C);
           if (TAI->getCStringSection() && CVA && CVA->isCString()) {
-            SwitchToDataSection(TAI->getCStringSection(), I);
+            SwitchToDataSection("\t.cstring", I);
             break;
           }
         }





More information about the llvm-commits mailing list