[llvm-commits] CVS: llvm/include/llvm/Target/TargetAsmInfo.h
Evan Cheng
evan.cheng at apple.com
Wed Mar 7 17:00:57 PST 2007
Changes in directory llvm/include/llvm/Target:
TargetAsmInfo.h updated: 1.27 -> 1.28
---
Log message:
Add ReadOnlySection directive.
---
Diffs of the changes: (+9 -1)
TargetAsmInfo.h | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletion(-)
Index: llvm/include/llvm/Target/TargetAsmInfo.h
diff -u llvm/include/llvm/Target/TargetAsmInfo.h:1.27 llvm/include/llvm/Target/TargetAsmInfo.h:1.28
--- llvm/include/llvm/Target/TargetAsmInfo.h:1.27 Tue Mar 6 20:47:57 2007
+++ llvm/include/llvm/Target/TargetAsmInfo.h Wed Mar 7 19:00:38 2007
@@ -203,7 +203,12 @@
const char *FourByteConstantSection;
const char *EightByteConstantSection;
const char *SixteenByteConstantSection;
-
+
+ /// ReadOnlySection - This is the directive that is emitted to switch to a
+ /// read-only section for constant data (e.g. data declared const,
+ /// jump tables).
+ const char *ReadOnlySection; // Defaults to NULL
+
//===--- Global Variable Emission Directives --------------------------===//
/// GlobalDirective - This is the directive used to declare a global entity.
@@ -474,6 +479,9 @@
const char *getSixteenByteConstantSection() const {
return SixteenByteConstantSection;
}
+ const char *getReadOnlySection() const {
+ return ReadOnlySection;
+ }
const char *getGlobalDirective() const {
return GlobalDirective;
}
More information about the llvm-commits
mailing list