aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-01-17 17:42:30 +0000
committerChris Lattner <sabre@nondot.org>2007-01-17 17:42:30 +0000
commitc099e49f5701cb497bf7328764e6abccfda6ec4d (patch)
treea22fec3785286d9a4d11d383ebd056ad6a74e2b3 /include
parent292a007c946cce20badbe52dbae06d5758bfad42 (diff)
downloadexternal_llvm-c099e49f5701cb497bf7328764e6abccfda6ec4d.zip
external_llvm-c099e49f5701cb497bf7328764e6abccfda6ec4d.tar.gz
external_llvm-c099e49f5701cb497bf7328764e6abccfda6ec4d.tar.bz2
document that BSSSection can be null.
Add new ZeroFillDirective directive. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33301 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Target/TargetAsmInfo.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/llvm/Target/TargetAsmInfo.h b/include/llvm/Target/TargetAsmInfo.h
index 1b95789..1218330 100644
--- a/include/llvm/Target/TargetAsmInfo.h
+++ b/include/llvm/Target/TargetAsmInfo.h
@@ -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;
}