summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-10-05 02:42:47 +0000
committerChris Lattner <sabre@nondot.org>2006-10-05 02:42:47 +0000
commitdc822411828b3830f49dc4737663d28b6d8d1caf (patch)
treeb9665fd8db812499f40600d712582a022f7270ed /llvm/lib/CodeGen/AsmPrinter.cpp
parent028d663ee6c490745fca5fd8a970d35de352b8f4 (diff)
downloadbcm5719-llvm-dc822411828b3830f49dc4737663d28b6d8d1caf.tar.gz
bcm5719-llvm-dc822411828b3830f49dc4737663d28b6d8d1caf.zip
move getSectionForFunction to AsmPrinter
llvm-svn: 30736
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter.cpp
index de58017de96..247cceda7da 100644
--- a/llvm/lib/CodeGen/AsmPrinter.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter.cpp
@@ -32,6 +32,10 @@ AsmPrinter::AsmPrinter(std::ostream &o, TargetMachine &tm,
: FunctionNumber(0), O(o), TM(tm), TAI(T)
{}
+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!
OpenPOWER on IntegriCloud