[llvm-commits] CVS: llvm/include/llvm/Target/TargetAsmInfo.h TargetOptions.h

Anton Korobeynikov asl at math.spbu.ru
Wed Jan 17 02:33:27 PST 2007



Changes in directory llvm/include/llvm/Target:

TargetAsmInfo.h updated: 1.20 -> 1.21
TargetOptions.h updated: 1.11 -> 1.12
---
Log message:

* Fix one more bug in PIC codegen: extra load is needed for *all* 
non-statics.
* Introduce new option to output zero-initialized data to .bss section. 
This can reduce size of binaries. Enable it by default for ELF & 
Cygwin/Mingw targets. Probably, Darwin should be also added.


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

 TargetAsmInfo.h |    7 +++++++
 TargetOptions.h |    2 ++
 2 files changed, 9 insertions(+)


Index: llvm/include/llvm/Target/TargetAsmInfo.h
diff -u llvm/include/llvm/Target/TargetAsmInfo.h:1.20 llvm/include/llvm/Target/TargetAsmInfo.h:1.21
--- llvm/include/llvm/Target/TargetAsmInfo.h:1.20	Mon Jan 15 21:42:04 2007
+++ llvm/include/llvm/Target/TargetAsmInfo.h	Wed Jan 17 04:33:08 2007
@@ -38,6 +38,10 @@
     /// DataSection - Section directive for standard data.
     ///
     const char *DataSection;              // Defaults to ".data".
+
+    /// BSSSection - Section directive for uninitialized data.
+    ///
+    const char *BSSSection;               // Default to ".bss".
     
     /// AddressSize - Size of addresses used in file.
     ///
@@ -313,6 +317,9 @@
     const char *getDataSection() const {
       return DataSection;
     }
+    const char *getBSSSection() const {
+      return BSSSection;
+    }
     unsigned getAddressSize() const {
       return AddressSize;
     }


Index: llvm/include/llvm/Target/TargetOptions.h
diff -u llvm/include/llvm/Target/TargetOptions.h:1.11 llvm/include/llvm/Target/TargetOptions.h:1.12
--- llvm/include/llvm/Target/TargetOptions.h:1.11	Fri Dec  8 20:41:05 2006
+++ llvm/include/llvm/Target/TargetOptions.h	Wed Jan 17 04:33:08 2007
@@ -54,6 +54,8 @@
   /// generate libcalls to the software floating point library instead of
   /// target FP instructions.
   extern bool UseSoftFloat;
+
+  extern bool NoZerosInBSS;
 } // End llvm namespace
 
 #endif






More information about the llvm-commits mailing list