projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9b7ce7d
)
move getSectionForFunction to AsmPrinter
author
Chris Lattner
<sabre@nondot.org>
Thu, 5 Oct 2006 02:42:47 +0000
(
02:42
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Thu, 5 Oct 2006 02:42:47 +0000
(
02:42
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30736
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/AsmPrinter.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/AsmPrinter.cpp
b/lib/CodeGen/AsmPrinter.cpp
index de58017de9658c14fe7046e226f9d5ed772fa210..247cceda7da9deb18453abd373b315b96d290667 100644
(file)
--- 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!