[llvm-commits] CVS: llvm/lib/Target/ARM/ARMTargetAsmInfo.cpp
Evan Cheng
evan.cheng at apple.com
Fri Jan 19 11:24:02 PST 2007
Changes in directory llvm/lib/Target/ARM:
ARMTargetAsmInfo.cpp updated: 1.5 -> 1.6
---
Log message:
Darwin doesn't support .bss, but it does have .zerofill
---
Diffs of the changes: (+7 -5)
ARMTargetAsmInfo.cpp | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
Index: llvm/lib/Target/ARM/ARMTargetAsmInfo.cpp
diff -u llvm/lib/Target/ARM/ARMTargetAsmInfo.cpp:1.5 llvm/lib/Target/ARM/ARMTargetAsmInfo.cpp:1.6
--- llvm/lib/Target/ARM/ARMTargetAsmInfo.cpp:1.5 Fri Jan 19 12:59:56 2007
+++ llvm/lib/Target/ARM/ARMTargetAsmInfo.cpp Fri Jan 19 13:23:47 2007
@@ -17,21 +17,23 @@
ARMTargetAsmInfo::ARMTargetAsmInfo(const ARMTargetMachine &TM) {
const ARMSubtarget *Subtarget = &TM.getSubtarget<ARMSubtarget>();
- if (Subtarget->isDarwin()) {
- HasDotTypeDotSizeDirective = false;
- PrivateGlobalPrefix = "L";
+ if (Subtarget->isTargetDarwin()) {
GlobalPrefix = "_";
ZeroDirective = "\t.space\t";
+ PrivateGlobalPrefix = "L";
+ BSSSection = 0; // no BSS section.
+ ZeroFillDirective = "\t.zerofill\t"; // Uses .zerofill
SetDirective = "\t.set";
WeakRefDirective = "\t.weak_reference\t";
JumpTableDataSection = ".const";
CStringSection = "\t.cstring";
+ LCOMMDirective = "\t.lcomm\t";
+ COMMDirectiveTakesAlignment = false;
+ HasDotTypeDotSizeDirective = false;
StaticCtorsSection = ".mod_init_func";
StaticDtorsSection = ".mod_term_func";
InlineAsmStart = "@ InlineAsm Start";
InlineAsmEnd = "@ InlineAsm End";
- LCOMMDirective = "\t.lcomm\t";
- COMMDirectiveTakesAlignment = false;
// In non-PIC modes, emit a special label before jump tables so that the
// linker can perform more accurate dead code stripping.
More information about the llvm-commits
mailing list