aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 1b957898f9..1218330902 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;
}