[llvm-commits] CVS: llvm/lib/Target/ARM/ARMAsmPrinter.cpp
Rafael Espindola
rafael.espindola at gmail.com
Fri Dec 8 13:25:15 PST 2006
Changes in directory llvm/lib/Target/ARM:
ARMAsmPrinter.cpp updated: 1.36 -> 1.37
---
Log message:
add \"aw\", at progbits" to ctors and dtors
---
Diffs of the changes: (+11 -4)
ARMAsmPrinter.cpp | 15 +++++++++++----
1 files changed, 11 insertions(+), 4 deletions(-)
Index: llvm/lib/Target/ARM/ARMAsmPrinter.cpp
diff -u llvm/lib/Target/ARM/ARMAsmPrinter.cpp:1.36 llvm/lib/Target/ARM/ARMAsmPrinter.cpp:1.37
--- llvm/lib/Target/ARM/ARMAsmPrinter.cpp:1.36 Thu Dec 7 16:38:06 2006
+++ llvm/lib/Target/ARM/ARMAsmPrinter.cpp Fri Dec 8 15:24:58 2006
@@ -317,10 +317,17 @@
break;
}
- if (C->isNullValue())
- SwitchToDataSection(".bss", I);
- else
- SwitchToDataSection(".data", I);
+ if (I->hasSection() &&
+ (I->getSection() == ".ctors" ||
+ I->getSection() == ".dtors")) {
+ std::string SectionName = ".section " + I->getSection();
+
+ SectionName += ",\"aw\", at progbits";
+
+ SwitchToDataSection(SectionName.c_str());
+ } else {
+ SwitchToDataSection(TAI->getDataSection(), I);
+ }
EmitAlignment(Align, I);
O << "\t.type " << name << ", %object\n";
More information about the llvm-commits
mailing list