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/CellSPU | |
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/CellSPU')
-rw-r--r-- | lib/Target/CellSPU/SPUAsmPrinter.cpp | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/lib/Target/CellSPU/SPUAsmPrinter.cpp b/lib/Target/CellSPU/SPUAsmPrinter.cpp index 2cfec79..ef33968 100644 --- a/lib/Target/CellSPU/SPUAsmPrinter.cpp +++ b/lib/Target/CellSPU/SPUAsmPrinter.cpp @@ -297,9 +297,6 @@ namespace { SPUAsmPrinter::getAnalysisUsage(AU); } - /// getSectionForFunction - Return the section that we should emit the - /// specified function body into. - virtual std::string getSectionForFunction(const Function &F) const; }; } // end of anonymous namespace @@ -406,19 +403,6 @@ void SPUAsmPrinter::printMachineInstruction(const MachineInstr *MI) { printInstruction(MI); } - - -std::string LinuxAsmPrinter::getSectionForFunction(const Function &F) const { - switch (F.getLinkage()) { - default: assert(0 && "Unknown linkage type!"); - case Function::ExternalLinkage: - case Function::InternalLinkage: return TAI->getTextSection(); - case Function::WeakLinkage: - case Function::LinkOnceLinkage: - return ""; // Print nothing for the time being... - } -} - /// runOnMachineFunction - This uses the printMachineInstruction() /// method to print assembly for each instruction. /// @@ -434,7 +418,7 @@ LinuxAsmPrinter::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); EmitAlignment(3, F); switch (F->getLinkage()) { |