summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/CellSPU/SPUAsmPrinter.cpp
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2008-09-24 22:13:07 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2008-09-24 22:13:07 +0000
commit69ff51baa0e051aee3a2a554b31aad8f15be3d74 (patch)
tree7f95a3026867cf1d0dd35e2539290f5ed935e1c2 /llvm/lib/Target/CellSPU/SPUAsmPrinter.cpp
parent7d002fa77b3d6eab83a59710b58bb2d30e4fec6b (diff)
downloadbcm5719-llvm-69ff51baa0e051aee3a2a554b31aad8f15be3d74.tar.gz
bcm5719-llvm-69ff51baa0e051aee3a2a554b31aad8f15be3d74.zip
Drop obsolete hook and change all usage to new interface
llvm-svn: 56572
Diffstat (limited to 'llvm/lib/Target/CellSPU/SPUAsmPrinter.cpp')
-rw-r--r--llvm/lib/Target/CellSPU/SPUAsmPrinter.cpp18
1 files changed, 1 insertions, 17 deletions
diff --git a/llvm/lib/Target/CellSPU/SPUAsmPrinter.cpp b/llvm/lib/Target/CellSPU/SPUAsmPrinter.cpp
index 2cfec795d42..ef33968c28f 100644
--- a/llvm/lib/Target/CellSPU/SPUAsmPrinter.cpp
+++ b/llvm/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()) {
OpenPOWER on IntegriCloud