aboutsummaryrefslogtreecommitdiff
path: root/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
commit52f0670470020d7672f9b0669c07324814e84a07 (patch)
tree374889cf3306d0524537481b5d20f2aeeda4e34a /lib/CodeGen/AsmPrinter.cpp
parent9b7ce7da820ada2cdada185de9c9aa94298e485e (diff)
move getSectionForFunction to AsmPrinter
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30736 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter.cpp')
-rw-r--r--lib/CodeGen/AsmPrinter.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/CodeGen/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter.cpp
index de58017de9..247cceda7d 100644
--- a/lib/CodeGen/AsmPrinter.cpp
+++ b/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!