document that BSSSection can be null.
authorChris Lattner <sabre@nondot.org>
Wed, 17 Jan 2007 17:42:30 +0000 (17:42 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 17 Jan 2007 17:42:30 +0000 (17:42 +0000)
Add new ZeroFillDirective directive.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33301 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Target/TargetAsmInfo.h

index 1b957898f9fab401ca160a382ceb0e910fc811e1..1218330902e8b9705ccd4cd359dc1d56f79bc72c 100644 (file)
@@ -39,10 +39,15 @@ namespace llvm {
     ///
     const char *DataSection;              // Defaults to ".data".
 
-    /// BSSSection - Section directive for uninitialized data.
+    /// BSSSection - Section directive for uninitialized data.  Null if this
+    /// target doesn't support a BSS section.
     ///
     const char *BSSSection;               // Default to ".bss".
     
+    /// ZeroFillDirective - Directive for emitting a global to the ZeroFill
+    /// section on this target.  Null if this target doesn't support zerofill.
+    const char *ZeroFillDirective;        // Default is null.
+    
     /// AddressSize - Size of addresses used in file.
     ///
     unsigned AddressSize;                 // Defaults to 4.
@@ -320,6 +325,9 @@ namespace llvm {
     const char *getBSSSection() const {
       return BSSSection;
     }
+    const char *getZeroFillDirective() const {
+      return ZeroFillDirective;
+    }
     unsigned getAddressSize() const {
       return AddressSize;
     }