diff options
author | Chris Lattner <sabre@nondot.org> | 2006-10-05 02:42:47 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-10-05 02:42:47 +0000 |
commit | dc822411828b3830f49dc4737663d28b6d8d1caf (patch) | |
tree | b9665fd8db812499f40600d712582a022f7270ed /llvm/lib/CodeGen/AsmPrinter.cpp | |
parent | 028d663ee6c490745fca5fd8a970d35de352b8f4 (diff) | |
download | bcm5719-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.cpp | 4 |
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! |