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 | 69ff51baa0e051aee3a2a554b31aad8f15be3d74 (patch) | |
| tree | 7f95a3026867cf1d0dd35e2539290f5ed935e1c2 /llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp | |
| parent | 7d002fa77b3d6eab83a59710b58bb2d30e4fec6b (diff) | |
| download | bcm5719-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/CodeGen/AsmPrinter/AsmPrinter.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index 6e9d935e0c0..93ebf218188 100644 --- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp @@ -47,11 +47,6 @@ AsmPrinter::~AsmPrinter() { E = GCMetadataPrinters.end(); I != E; ++I) delete I->second; } - -std::string AsmPrinter::getSectionForFunction(const Function &F) const { - return TAI->getTextSection(); -} - /// SwitchToTextSection - Switch to the specified text section of the executable /// if we are not already in it! @@ -331,7 +326,7 @@ void AsmPrinter::EmitJumpTableInfo(MachineJumpTableInfo *MJTI, // function body itself, otherwise the label differences won't make sense. // We should also do if the section name is NULL or function is declared in // discardable section. - SwitchToTextSection(getSectionForFunction(*F).c_str(), F); + SwitchToTextSection(TAI->SectionForGlobal(F).c_str(), F); } else { SwitchToDataSection(JumpTableDataSection); } |

