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:
29bd9e1
)
Use getSectionForFunction.
author
Chris Lattner
<sabre@nondot.org>
Thu, 5 Oct 2006 02:49:23 +0000
(
02:49
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Thu, 5 Oct 2006 02:49:23 +0000
(
02:49
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30740
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/ARM/ARMAsmPrinter.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/ARM/ARMAsmPrinter.cpp
b/lib/Target/ARM/ARMAsmPrinter.cpp
index 695dcf0735b10afa38b377d4698739e5b6d89274..4c0d187c7bc0596aceb4ea0b6e7a88eb606b10d9 100644
(file)
--- a/
lib/Target/ARM/ARMAsmPrinter.cpp
+++ b/
lib/Target/ARM/ARMAsmPrinter.cpp
@@
-121,13
+121,13
@@
bool ARMAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
// Print out labels for the function.
const Function *F = MF.getFunction();
+ SwitchToTextSection(getSectionForFunction(*F).c_str(), F);
+
switch (F->getLinkage()) {
default: assert(0 && "Unknown linkage type!");
case Function::InternalLinkage:
- SwitchToTextSection("\t.text", F);
break;
case Function::ExternalLinkage:
- SwitchToTextSection("\t.text", F);
O << "\t.globl\t" << CurrentFnName << "\n";
break;
case Function::WeakLinkage: