aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/AsmPrinter/AsmPrinter.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
commit0c8e80607bc3296a4775f05c02f0d11df8e5cb04 (patch)
tree0aacd521a19fe87f388f011eb142062be86c78e3 /lib/CodeGen/AsmPrinter/AsmPrinter.cpp
parentb5a32e2e8ce2f3de3a340c5a2dfcd3a159968466 (diff)
downloadexternal_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/CodeGen/AsmPrinter/AsmPrinter.cpp')
-rw-r--r--lib/CodeGen/AsmPrinter/AsmPrinter.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index 6e9d935..93ebf21 100644
--- a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/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);
}