[llvm-commits] CVS: llvm/lib/Target/PowerPC/PPCTargetAsmInfo.cpp

Chris Lattner sabre at nondot.org
Mon Sep 25 20:40:07 PDT 2006



Changes in directory llvm/lib/Target/PowerPC:

PPCTargetAsmInfo.cpp updated: 1.2 -> 1.3
---
Log message:

Compile:
int x __attribute__((used));

to:

        .data
.comm _x,4              ; 'x'
        .no_dead_strip  _x

on both x86 and ppc darwin targets.



---
Diffs of the changes:  (+1 -0)

 PPCTargetAsmInfo.cpp |    1 +
 1 files changed, 1 insertion(+)


Index: llvm/lib/Target/PowerPC/PPCTargetAsmInfo.cpp
diff -u llvm/lib/Target/PowerPC/PPCTargetAsmInfo.cpp:1.2 llvm/lib/Target/PowerPC/PPCTargetAsmInfo.cpp:1.3
--- llvm/lib/Target/PowerPC/PPCTargetAsmInfo.cpp:1.2	Fri Sep  8 08:06:56 2006
+++ llvm/lib/Target/PowerPC/PPCTargetAsmInfo.cpp	Mon Sep 25 22:39:53 2006
@@ -32,6 +32,7 @@
   LCOMMDirective = "\t.lcomm\t";
   StaticCtorsSection = ".mod_init_func";
   StaticDtorsSection = ".mod_term_func";
+  UsedDirective = "\t.no_dead_strip\t";
   InlineAsmStart = "# InlineAsm Start";
   InlineAsmEnd = "# InlineAsm End";
   






More information about the llvm-commits mailing list