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 | 0c8e80607bc3296a4775f05c02f0d11df8e5cb04 (patch) | |
tree | 0aacd521a19fe87f388f011eb142062be86c78e3 /lib/Target/Sparc | |
parent | b5a32e2e8ce2f3de3a340c5a2dfcd3a159968466 (diff) | |
download | external_llvm-0c8e80607bc3296a4775f05c02f0d11df8e5cb04.zip external_llvm-0c8e80607bc3296a4775f05c02f0d11df8e5cb04.tar.gz external_llvm-0c8e80607bc3296a4775f05c02f0d11df8e5cb04.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/Sparc')
-rw-r--r-- | lib/Target/Sparc/SparcAsmPrinter.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/Target/Sparc/SparcAsmPrinter.cpp b/lib/Target/Sparc/SparcAsmPrinter.cpp index 8fa5488..bb4d6ae 100644 --- a/lib/Target/Sparc/SparcAsmPrinter.cpp +++ b/lib/Target/Sparc/SparcAsmPrinter.cpp @@ -63,7 +63,6 @@ namespace { bool printInstruction(const MachineInstr *MI); // autogenerated. bool runOnMachineFunction(MachineFunction &F); - std::string getSectionForFunction(const Function &F) const; bool doInitialization(Module &M); bool doFinalization(Module &M); }; @@ -81,11 +80,6 @@ FunctionPass *llvm::createSparcCodePrinterPass(raw_ostream &o, return new SparcAsmPrinter(o, tm, tm.getTargetAsmInfo()); } -// Substitute old hook with new one temporary -std::string SparcAsmPrinter::getSectionForFunction(const Function &F) const { - return TAI->SectionForGlobal(&F); -} - /// runOnMachineFunction - This uses the printInstruction() /// method to print assembly for each instruction. /// @@ -105,7 +99,7 @@ bool SparcAsmPrinter::runOnMachineFunction(MachineFunction &MF) { // Print out the label for the function. const Function *F = MF.getFunction(); - SwitchToTextSection(getSectionForFunction(*F).c_str(), F); + SwitchToTextSection(TAI->SectionForGlobal(F).c_str(), F); EmitAlignment(4, F); O << "\t.globl\t" << CurrentFnName << '\n'; |