diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2008-09-24 22:13:07 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2008-09-24 22:13:07 +0000 |
commit | cf87a3dd015c7e2acfc0b4feff48fc7fc2a16f01 (patch) | |
tree | 0aacd521a19fe87f388f011eb142062be86c78e3 /lib/Target/PowerPC/AsmPrinter | |
parent | 801e0fd4ead5fe89dc7ced7f7d6c4278a607f580 (diff) | |
download | external_llvm-cf87a3dd015c7e2acfc0b4feff48fc7fc2a16f01.zip external_llvm-cf87a3dd015c7e2acfc0b4feff48fc7fc2a16f01.tar.gz external_llvm-cf87a3dd015c7e2acfc0b4feff48fc7fc2a16f01.tar.bz2 |
Drop obsolete hook and change all usage to new interface
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56572 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/AsmPrinter')
-rw-r--r-- | lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp b/lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp index 8ea1825..a8127f6 100644 --- a/lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp +++ b/lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp @@ -315,9 +315,6 @@ namespace { PPCAsmPrinter::getAnalysisUsage(AU); } - /// getSectionForFunction - Return the section that we should emit the - /// specified function body into. - virtual std::string getSectionForFunction(const Function &F) const; void printModuleLevelGV(const GlobalVariable* GVar); }; @@ -347,9 +344,6 @@ namespace { PPCAsmPrinter::getAnalysisUsage(AU); } - /// getSectionForFunction - Return the section that we should emit the - /// specified function body into. - virtual std::string getSectionForFunction(const Function &F) const; void printModuleLevelGV(const GlobalVariable* GVar); }; } // end of anonymous namespace @@ -577,7 +571,7 @@ bool PPCLinuxAsmPrinter::runOnMachineFunction(MachineFunction &MF) { // Print out labels for the function. const Function *F = MF.getFunction(); - SwitchToTextSection(getSectionForFunction(*F).c_str(), F); + SwitchToTextSection(TAI->SectionForGlobal(F).c_str(), F); switch (F->getLinkage()) { default: assert(0 && "Unknown linkage type!"); @@ -753,14 +747,6 @@ bool PPCLinuxAsmPrinter::doFinalization(Module &M) { return AsmPrinter::doFinalization(M); } -std::string PPCLinuxAsmPrinter::getSectionForFunction(const Function &F) const { - return TAI->SectionForGlobal(&F); -} - -std::string PPCDarwinAsmPrinter::getSectionForFunction(const Function &F) const { - return TAI->SectionForGlobal(&F); -} - /// runOnMachineFunction - This uses the printMachineInstruction() /// method to print assembly for each instruction. /// @@ -773,7 +759,7 @@ bool PPCDarwinAsmPrinter::runOnMachineFunction(MachineFunction &MF) { // Print out labels for the function. const Function *F = MF.getFunction(); - SwitchToTextSection(getSectionForFunction(*F).c_str(), F); + SwitchToTextSection(TAI->SectionForGlobal(F).c_str(), F); switch (F->getLinkage()) { default: assert(0 && "Unknown linkage type!"); |