Changes in directory llvm/lib/Target/PowerPC:
PPCAsmPrinter.cpp updated: 1.114 -> 1.115 --- Log message: This is now implemented in common codegen code --- Diffs of the changes: (+0 -20) PPCAsmPrinter.cpp | 20 -------------------- 1 files changed, 20 deletions(-) Index: llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp diff -u llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp:1.114 llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp:1.115 --- llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp:1.114 Mon Nov 21 00:47:58 2005 +++ llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp Mon Nov 21 01:06:58 2005 @@ -44,7 +44,6 @@ Statistic<> EmittedInsts("asm-printer", "Number of machine instrs printed"); class PPCAsmPrinter : public AsmPrinter { - std::string CurSection; public: std::set<std::string> FnStubs, GVStubs, LinkOnceStubs; @@ -63,24 +62,6 @@ return static_cast<PPCTargetMachine&>(TM); } - /// SwitchSection - Switch to the specified section of the executable if we - /// are not already in it! - /// - void SwitchSection(const char *NewSection, const GlobalValue *GV) { - std::string NS; - - if (GV && GV->hasSection()) - NS = ".section " + GV->getSection(); - else - NS = NewSection; - - if (CurSection != NS) { - CurSection = NS; - if (!CurSection.empty()) - O << "\t" << CurSection << "\n"; - } - } - unsigned enumRegToMachineReg(unsigned enumReg) { switch (enumReg) { default: assert(0 && "Unhandled register!"); break; @@ -466,7 +447,6 @@ bool DarwinAsmPrinter::doInitialization(Module &M) { if (TM.getSubtarget<PPCSubtarget>().isGigaProcessor()) O << "\t.machine ppc970\n"; - SwitchSection("", 0); AsmPrinter::doInitialization(M); // Darwin wants symbols to be quoted if they have complex names. _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits