[llvm-commits] CVS: llvm/lib/Target/ARM/ARMTargetAsmInfo.cpp

2007-06-08 Thread Lauro Ramos Venancio


Changes in directory llvm/lib/Target/ARM:

ARMTargetAsmInfo.cpp updated: 1.21 - 1.22
---
Log message:

Define AsmTransCBE for ARM.



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

 ARMTargetAsmInfo.cpp |   25 +
 1 files changed, 25 insertions(+)


Index: llvm/lib/Target/ARM/ARMTargetAsmInfo.cpp
diff -u llvm/lib/Target/ARM/ARMTargetAsmInfo.cpp:1.21 
llvm/lib/Target/ARM/ARMTargetAsmInfo.cpp:1.22
--- llvm/lib/Target/ARM/ARMTargetAsmInfo.cpp:1.21   Mon May 14 13:32:55 2007
+++ llvm/lib/Target/ARM/ARMTargetAsmInfo.cppFri Jun  8 16:06:23 2007
@@ -18,8 +18,33 @@
 #include cctype
 using namespace llvm;
 
+static const char* arm_asm_table[] = {{r0}, r0,
+  {r1}, r1,
+  {r2}, r2,
+  {r3}, r3,
+  {r4}, r4,
+  {r5}, r5,
+  {r6}, r6,
+  {r7}, r7,
+  {r8}, r8,
+  {r9}, r9,
+  {r10}, r10,
+  {r11}, r11,
+  {r12}, r12,
+  {r13}, r13,
+  {r14}, r14,
+  {lr}, lr,
+  {sp}, sp,
+  {ip}, ip,
+  {fp}, fp,
+  {sl}, sl,
+  {memory}, memory,
+  {cc}, cc,
+  0,0};
+
 ARMTargetAsmInfo::ARMTargetAsmInfo(const ARMTargetMachine TM) {
   Subtarget = TM.getSubtargetARMSubtarget();
+  AsmTransCBE = arm_asm_table;
   if (Subtarget-isTargetDarwin()) {
 GlobalPrefix = _;
 PrivateGlobalPrefix = L;



___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


[llvm-commits] CVS: llvm/lib/Target/ARM/ARMTargetAsmInfo.cpp

2007-05-14 Thread Lauro Ramos Venancio


Changes in directory llvm/lib/Target/ARM:

ARMTargetAsmInfo.cpp updated: 1.20 - 1.21
---
Log message:

Enable aliases on arm-linux.


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

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


Index: llvm/lib/Target/ARM/ARMTargetAsmInfo.cpp
diff -u llvm/lib/Target/ARM/ARMTargetAsmInfo.cpp:1.20 
llvm/lib/Target/ARM/ARMTargetAsmInfo.cpp:1.21
--- llvm/lib/Target/ARM/ARMTargetAsmInfo.cpp:1.20   Thu May  3 15:28:35 2007
+++ llvm/lib/Target/ARM/ARMTargetAsmInfo.cppMon May 14 13:32:55 2007
@@ -69,6 +69,7 @@
 ReadOnlySection = \t.section\t.rodata\n;
 PrivateGlobalPrefix = .L;
 WeakRefDirective = \t.weak\t;
+SetDirective = \t.set\t;
 DwarfRequiresFrameSection = false;
 DwarfAbbrevSection =  \t.section\t.debug_abbrev,\\,%progbits;
 DwarfInfoSection =\t.section\t.debug_info,\\,%progbits;



___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


[llvm-commits] CVS: llvm/lib/Target/ARM/ARMTargetAsmInfo.cpp

2007-04-29 Thread Dale Johannesen


Changes in directory llvm/lib/Target/ARM:

ARMTargetAsmInfo.cpp updated: 1.17 - 1.18
---
Log message:

remove unused variable



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

 ARMTargetAsmInfo.cpp |1 -
 1 files changed, 1 deletion(-)


Index: llvm/lib/Target/ARM/ARMTargetAsmInfo.cpp
diff -u llvm/lib/Target/ARM/ARMTargetAsmInfo.cpp:1.17 
llvm/lib/Target/ARM/ARMTargetAsmInfo.cpp:1.18
--- llvm/lib/Target/ARM/ARMTargetAsmInfo.cpp:1.17   Sun Apr 29 19:23:51 2007
+++ llvm/lib/Target/ARM/ARMTargetAsmInfo.cppSun Apr 29 19:30:48 2007
@@ -112,7 +112,6 @@
 atInsnStart = false;
 if (isThumb) {
   // BL and BLX non-reg are 4 bytes, all others 2.
-  const char*p = Str;
   if ((*Str=='b' || *Str=='B') 
   (*(Str+1)=='l' || *(Str+1)=='L')) {
 if (*(Str+2)=='x' || *(Str+2)=='X') {



___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


[llvm-commits] CVS: llvm/lib/Target/ARM/ARMTargetAsmInfo.cpp ARMTargetAsmInfo.h

2007-04-23 Thread Dale Johannesen


Changes in directory llvm/lib/Target/ARM:

ARMTargetAsmInfo.cpp updated: 1.13 - 1.14
ARMTargetAsmInfo.h updated: 1.1 - 1.2
---
Log message:

add isThumb (unused as yet)


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

 ARMTargetAsmInfo.cpp |3 +++
 ARMTargetAsmInfo.h   |2 ++
 2 files changed, 5 insertions(+)


Index: llvm/lib/Target/ARM/ARMTargetAsmInfo.cpp
diff -u llvm/lib/Target/ARM/ARMTargetAsmInfo.cpp:1.13 
llvm/lib/Target/ARM/ARMTargetAsmInfo.cpp:1.14
--- llvm/lib/Target/ARM/ARMTargetAsmInfo.cpp:1.13   Wed Mar  7 19:25:25 2007
+++ llvm/lib/Target/ARM/ARMTargetAsmInfo.cppMon Apr 23 15:04:35 2007
@@ -13,6 +13,8 @@
 
 #include ARMTargetAsmInfo.h
 #include ARMTargetMachine.h
+#include cstring
+#include cctype
 using namespace llvm;
 
 ARMTargetAsmInfo::ARMTargetAsmInfo(const ARMTargetMachine TM) {
@@ -80,4 +82,5 @@
   InlineAsmStart = @ InlineAsm Start;
   InlineAsmEnd = @ InlineAsm End;
   LCOMMDirective = \t.lcomm\t;
+  isThumb = Subtarget-isThumb();
 }


Index: llvm/lib/Target/ARM/ARMTargetAsmInfo.h
diff -u llvm/lib/Target/ARM/ARMTargetAsmInfo.h:1.1 
llvm/lib/Target/ARM/ARMTargetAsmInfo.h:1.2
--- llvm/lib/Target/ARM/ARMTargetAsmInfo.h:1.1  Thu Sep  7 17:05:01 2006
+++ llvm/lib/Target/ARM/ARMTargetAsmInfo.h  Mon Apr 23 15:04:35 2007
@@ -23,6 +23,8 @@
 
   struct ARMTargetAsmInfo : public TargetAsmInfo {
 ARMTargetAsmInfo(const ARMTargetMachine TM);
+
+bool isThumb;
   };
 
 



___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


[llvm-commits] CVS: llvm/lib/Target/ARM/ARMTargetAsmInfo.cpp

2007-03-05 Thread Lauro Ramos Venancio


Changes in directory llvm/lib/Target/ARM:

ARMTargetAsmInfo.cpp updated: 1.11 - 1.12
---
Log message:

Use init_array/fini_array sections for static contructors/destructors when the 
ABI is AAPCS.
Fix SingleSource/Regression/C/ConstructorDestructorAttributes test on 
arm-linux-gnueabi.



---
Diffs of the changes:  (+7 -2)

 ARMTargetAsmInfo.cpp |9 +++--
 1 files changed, 7 insertions(+), 2 deletions(-)


Index: llvm/lib/Target/ARM/ARMTargetAsmInfo.cpp
diff -u llvm/lib/Target/ARM/ARMTargetAsmInfo.cpp:1.11 
llvm/lib/Target/ARM/ARMTargetAsmInfo.cpp:1.12
--- llvm/lib/Target/ARM/ARMTargetAsmInfo.cpp:1.11   Thu Feb  1 15:43:53 2007
+++ llvm/lib/Target/ARM/ARMTargetAsmInfo.cppMon Mar  5 11:59:58 2007
@@ -58,8 +58,13 @@
   } else {
 PrivateGlobalPrefix = .L;
 WeakRefDirective = \t.weak\t;
-StaticCtorsSection = \t.section .ctors,\aw\,%progbits;
-StaticDtorsSection = \t.section .dtors,\aw\,%progbits;
+if (Subtarget-isAAPCS_ABI()) {
+  StaticCtorsSection = \t.section .init_array,\aw\,%init_array;
+  StaticDtorsSection = \t.section .fini_array,\aw\,%fini_array;
+} else {
+  StaticCtorsSection = \t.section .ctors,\aw\,%progbits;
+  StaticDtorsSection = \t.section .dtors,\aw\,%progbits;
+}
   }
 
   ZeroDirective = \t.space\t;



___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


[llvm-commits] CVS: llvm/lib/Target/ARM/ARMTargetAsmInfo.cpp

2007-02-01 Thread Lauro Ramos Venancio


Changes in directory llvm/lib/Target/ARM:

ARMTargetAsmInfo.cpp updated: 1.10 - 1.11
---
Log message:

Define PrivateGlobalPrefix for ARM Linux. (Fix CodeGen/ARM/large_stack.ll)


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

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


Index: llvm/lib/Target/ARM/ARMTargetAsmInfo.cpp
diff -u llvm/lib/Target/ARM/ARMTargetAsmInfo.cpp:1.10 
llvm/lib/Target/ARM/ARMTargetAsmInfo.cpp:1.11
--- llvm/lib/Target/ARM/ARMTargetAsmInfo.cpp:1.10   Tue Jan 30 02:04:53 2007
+++ llvm/lib/Target/ARM/ARMTargetAsmInfo.cppThu Feb  1 15:43:53 2007
@@ -56,6 +56,7 @@
 DwarfRangesSection = .section __DWARF,__debug_ranges,regular,debug;
 DwarfMacInfoSection = .section __DWARF,__debug_macinfo,regular,debug;
   } else {
+PrivateGlobalPrefix = .L;
 WeakRefDirective = \t.weak\t;
 StaticCtorsSection = \t.section .ctors,\aw\,%progbits;
 StaticDtorsSection = \t.section .dtors,\aw\,%progbits;



___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


[llvm-commits] CVS: llvm/lib/Target/ARM/ARMTargetAsmInfo.cpp

2007-01-26 Thread Lauro Ramos Venancio


Changes in directory llvm/lib/Target/ARM:

ARMTargetAsmInfo.cpp updated: 1.7 - 1.8
---
Log message:

Fix Data16bitsDirective for ELF.


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

 ARMTargetAsmInfo.cpp |1 -
 1 files changed, 1 deletion(-)


Index: llvm/lib/Target/ARM/ARMTargetAsmInfo.cpp
diff -u llvm/lib/Target/ARM/ARMTargetAsmInfo.cpp:1.7 
llvm/lib/Target/ARM/ARMTargetAsmInfo.cpp:1.8
--- llvm/lib/Target/ARM/ARMTargetAsmInfo.cpp:1.7Tue Jan 23 13:06:03 2007
+++ llvm/lib/Target/ARM/ARMTargetAsmInfo.cppFri Jan 26 15:20:45 2007
@@ -56,7 +56,6 @@
 DwarfRangesSection = .section __DWARF,__debug_ranges,regular,debug;
 DwarfMacInfoSection = .section __DWARF,__debug_macinfo,regular,debug;
   } else {
-Data16bitsDirective = \t.half\t;
 Data32bitsDirective = \t.word\t;
 ZeroDirective = \t.skip\t;
 WeakRefDirective = \t.weak\t;



___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


[llvm-commits] CVS: llvm/lib/Target/ARM/ARMTargetAsmInfo.cpp

2007-01-26 Thread Lauro Ramos Venancio


Changes in directory llvm/lib/Target/ARM:

ARMTargetAsmInfo.cpp updated: 1.8 - 1.9
---
Log message:

Some asm directives fixes for ELF.
Now we can compile llvm-gcc on arm-linux-gnueabi!


---
Diffs of the changes:  (+7 -8)

 ARMTargetAsmInfo.cpp |   15 +++
 1 files changed, 7 insertions(+), 8 deletions(-)


Index: llvm/lib/Target/ARM/ARMTargetAsmInfo.cpp
diff -u llvm/lib/Target/ARM/ARMTargetAsmInfo.cpp:1.8 
llvm/lib/Target/ARM/ARMTargetAsmInfo.cpp:1.9
--- llvm/lib/Target/ARM/ARMTargetAsmInfo.cpp:1.8Fri Jan 26 15:20:45 2007
+++ llvm/lib/Target/ARM/ARMTargetAsmInfo.cppFri Jan 26 17:24:43 2007
@@ -19,7 +19,6 @@
   const ARMSubtarget *Subtarget = TM.getSubtargetARMSubtarget();
   if (Subtarget-isTargetDarwin()) {
 GlobalPrefix = _;
-ZeroDirective = \t.space\t;
 PrivateGlobalPrefix = L;
 BSSSection = 0;   // no BSS section.
 ZeroFillDirective = \t.zerofill\t;  // Uses .zerofill
@@ -28,13 +27,9 @@
 HiddenDirective = \t.private_extern\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;
 
 // In non-PIC modes, emit a special label before jump tables so that the
 // linker can perform more accurate dead code stripping.
@@ -56,15 +51,19 @@
 DwarfRangesSection = .section __DWARF,__debug_ranges,regular,debug;
 DwarfMacInfoSection = .section __DWARF,__debug_macinfo,regular,debug;
   } else {
-Data32bitsDirective = \t.word\t;
-ZeroDirective = \t.skip\t;
 WeakRefDirective = \t.weak\t;
 StaticCtorsSection = \t.section .ctors,\aw\,%progbits;
 StaticDtorsSection = \t.section .dtors,\aw\,%progbits;
   }
-  AlignmentIsInBytes = false; 
+
+  ZeroDirective = \t.space\t;
+  AlignmentIsInBytes = false;
   Data64bitsDirective = 0;
   CommentString = @;
   DataSection = \t.data;
   ConstantPoolSection = \t.text\n;
+  COMMDirectiveTakesAlignment = false;
+  InlineAsmStart = @ InlineAsm Start;
+  InlineAsmEnd = @ InlineAsm End;
+  LCOMMDirective = \t.lcomm\t;
 }



___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


Re: [llvm-commits] CVS: llvm/lib/Target/ARM/ARMTargetAsmInfo.cpp

2007-01-26 Thread Chris Lattner

On Jan 26, 2007, at 3:25 PM, Lauro Ramos Venancio wrote:



 Changes in directory llvm/lib/Target/ARM:

 ARMTargetAsmInfo.cpp updated: 1.8 - 1.9
 ---
 Log message:

 Some asm directives fixes for ELF.
 Now we can compile llvm-gcc on arm-linux-gnueabi!

Nice!!

-Chris
___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


[llvm-commits] CVS: llvm/lib/Target/ARM/ARMTargetAsmInfo.cpp

2007-01-23 Thread Evan Cheng


Changes in directory llvm/lib/Target/ARM:

ARMTargetAsmInfo.cpp updated: 1.6 - 1.7
---
Log message:

Darwin HiddenDirective is .private_extern.

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

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


Index: llvm/lib/Target/ARM/ARMTargetAsmInfo.cpp
diff -u llvm/lib/Target/ARM/ARMTargetAsmInfo.cpp:1.6 
llvm/lib/Target/ARM/ARMTargetAsmInfo.cpp:1.7
--- llvm/lib/Target/ARM/ARMTargetAsmInfo.cpp:1.6Fri Jan 19 13:23:47 2007
+++ llvm/lib/Target/ARM/ARMTargetAsmInfo.cppTue Jan 23 13:06:03 2007
@@ -25,6 +25,7 @@
 ZeroFillDirective = \t.zerofill\t;  // Uses .zerofill
 SetDirective = \t.set;
 WeakRefDirective = \t.weak_reference\t;
+HiddenDirective = \t.private_extern\t;
 JumpTableDataSection = .const;
 CStringSection = \t.cstring;
 LCOMMDirective = \t.lcomm\t;



___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


[llvm-commits] CVS: llvm/lib/Target/ARM/ARMTargetAsmInfo.cpp

2007-01-19 Thread Evan Cheng


Changes in directory llvm/lib/Target/ARM:

ARMTargetAsmInfo.cpp updated: 1.4 - 1.5
---
Log message:

Modify emission of jump tables on darwin to emit an extra l label that
delimits the boundaries of jump tables.  This lets the linker's dead code
stripping optimization do a better job.

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

 ARMTargetAsmInfo.cpp |7 +++
 1 files changed, 7 insertions(+)


Index: llvm/lib/Target/ARM/ARMTargetAsmInfo.cpp
diff -u llvm/lib/Target/ARM/ARMTargetAsmInfo.cpp:1.4 
llvm/lib/Target/ARM/ARMTargetAsmInfo.cpp:1.5
--- llvm/lib/Target/ARM/ARMTargetAsmInfo.cpp:1.4Fri Jan 19 01:51:42 2007
+++ llvm/lib/Target/ARM/ARMTargetAsmInfo.cppFri Jan 19 12:59:56 2007
@@ -33,6 +33,13 @@
 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.
+if (TM.getRelocationModel() != Reloc::PIC_) {
+  // Emit a local label that is preserved until the linker runs.
+  JumpTableSpecialLabelPrefix = l;
+}
+
 NeedsSet = true;
 DwarfAbbrevSection = .section __DWARF,__debug_abbrev,regular,debug;
 DwarfInfoSection = .section __DWARF,__debug_info,regular,debug;



___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


[llvm-commits] CVS: llvm/lib/Target/ARM/ARMTargetAsmInfo.cpp

2007-01-19 Thread Evan Cheng


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.5Fri Jan 19 12:59:56 2007
+++ llvm/lib/Target/ARM/ARMTargetAsmInfo.cppFri Jan 19 13:23:47 2007
@@ -17,21 +17,23 @@
 
 ARMTargetAsmInfo::ARMTargetAsmInfo(const ARMTargetMachine TM) {
   const ARMSubtarget *Subtarget = TM.getSubtargetARMSubtarget();
-  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.



___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


Re: [llvm-commits] CVS: llvm/lib/Target/ARM/ARMTargetAsmInfo.cpp

2006-12-29 Thread Rafael EspĂ­ndola
On 12/28/06, Lauro Ramos Venancio [EMAIL PROTECTED] wrote:
 Log message:

 Define StaticCtorsSection and StaticDtorsSection for ARM.

Nice!

Could you please commit a small regression test?

Thanks,
Rafael
___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


[llvm-commits] CVS: llvm/lib/Target/ARM/ARMTargetAsmInfo.cpp

2006-12-28 Thread Lauro Ramos Venancio


Changes in directory llvm/lib/Target/ARM:

ARMTargetAsmInfo.cpp updated: 1.2 - 1.3
---
Log message:

Define StaticCtorsSection and StaticDtorsSection for ARM.


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

 ARMTargetAsmInfo.cpp |2 ++
 1 files changed, 2 insertions(+)


Index: llvm/lib/Target/ARM/ARMTargetAsmInfo.cpp
diff -u llvm/lib/Target/ARM/ARMTargetAsmInfo.cpp:1.2 
llvm/lib/Target/ARM/ARMTargetAsmInfo.cpp:1.3
--- llvm/lib/Target/ARM/ARMTargetAsmInfo.cpp:1.2Wed Dec  6 07:35:10 2006
+++ llvm/lib/Target/ARM/ARMTargetAsmInfo.cppThu Dec 28 07:13:00 2006
@@ -24,4 +24,6 @@
   ConstantPoolSection = \t.text\n;
   AlignmentIsInBytes = false;
   WeakRefDirective = \t.weak\t;
+  StaticCtorsSection = \t.section .ctors,\aw\,%progbits;
+  StaticDtorsSection = \t.section .dtors,\aw\,%progbits;
 }



___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


[llvm-commits] CVS: llvm/lib/Target/ARM/ARMTargetAsmInfo.cpp ARMTargetAsmInfo.h

2006-09-07 Thread Jim Laskey


Changes in directory llvm/lib/Target/ARM:

ARMTargetAsmInfo.cpp added (r1.1)
ARMTargetAsmInfo.h added (r1.1)
---
Log message:

Break out target asm info into separate files.


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

 ARMTargetAsmInfo.cpp |   26 ++
 ARMTargetAsmInfo.h   |   31 +++
 2 files changed, 57 insertions(+)


Index: llvm/lib/Target/ARM/ARMTargetAsmInfo.cpp
diff -c /dev/null llvm/lib/Target/ARM/ARMTargetAsmInfo.cpp:1.1
*** /dev/null   Thu Sep  7 17:05:12 2006
--- llvm/lib/Target/ARM/ARMTargetAsmInfo.cppThu Sep  7 17:05:01 2006
***
*** 0 
--- 1,26 
+ //===-- ARMTargetAsmInfo.cpp - ARM asm properties ---*- C++ 
-*-===//
+ //
+ // The LLVM Compiler Infrastructure
+ //
+ // This file was developed by James M. Laskey and is distributed under the
+ // University of Illinois Open Source License. See LICENSE.TXT for details.
+ //
+ 
//===--===//
+ //
+ // This file contains the declarations of the ARMTargetAsmInfo properties.
+ //
+ 
//===--===//
+ 
+ #include ARMTargetAsmInfo.h
+ 
+ using namespace llvm;
+ 
+ ARMTargetAsmInfo::ARMTargetAsmInfo(const ARMTargetMachine TM) {
+   Data16bitsDirective = \t.half\t;
+   Data32bitsDirective = \t.word\t;
+   Data64bitsDirective = 0;
+   ZeroDirective = \t.skip\t;
+   CommentString = @;
+   ConstantPoolSection = \t.text\n;
+   AlignmentIsInBytes = false;
+ }


Index: llvm/lib/Target/ARM/ARMTargetAsmInfo.h
diff -c /dev/null llvm/lib/Target/ARM/ARMTargetAsmInfo.h:1.1
*** /dev/null   Thu Sep  7 17:05:23 2006
--- llvm/lib/Target/ARM/ARMTargetAsmInfo.h  Thu Sep  7 17:05:01 2006
***
*** 0 
--- 1,31 
+ //=-- ARMTargetAsmInfo.h - ARM asm properties -*- C++ 
-*--//
+ //
+ // The LLVM Compiler Infrastructure
+ //
+ // This file was developed by James M. Laskey and is distributed under the
+ // University of Illinois Open Source License. See LICENSE.TXT for details.
+ //
+ 
//===--===//
+ //
+ // This file contains the declaration of the ARMTargetAsmInfo class.
+ //
+ 
//===--===//
+ 
+ #ifndef ARMTARGETASMINFO_H
+ #define ARMTARGETASMINFO_H
+ 
+ #include llvm/Target/TargetAsmInfo.h
+ 
+ namespace llvm {
+ 
+   // Forward declaration.
+   class ARMTargetMachine;
+ 
+   struct ARMTargetAsmInfo : public TargetAsmInfo {
+ ARMTargetAsmInfo(const ARMTargetMachine TM);
+   };
+ 
+ 
+ } // namespace llvm
+ 
+ #endif



___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits