diff options
author | Chris Lattner <sabre@nondot.org> | 2009-07-26 01:24:18 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-07-26 01:24:18 +0000 |
commit | 30c4a3b9a896e2cbb4ef91d46f751a9c48558da4 (patch) | |
tree | 272b43047ebbd69fc95910fdd7595621579187f1 /include | |
parent | c993250dd2a4e4f6629179613b6b0757108319e7 (diff) | |
download | external_llvm-30c4a3b9a896e2cbb4ef91d46f751a9c48558da4.zip external_llvm-30c4a3b9a896e2cbb4ef91d46f751a9c48558da4.tar.gz external_llvm-30c4a3b9a896e2cbb4ef91d46f751a9c48558da4.tar.bz2 |
finish simplifying DarwinTargetAsmInfo::SelectSectionForGlobal
for now. Make the section switching directives more consistent
by not including \n and including \t for them all.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77107 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Target/TargetAsmInfo.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/llvm/Target/TargetAsmInfo.h b/include/llvm/Target/TargetAsmInfo.h index b9a877e..e1ac696 100644 --- a/include/llvm/Target/TargetAsmInfo.h +++ b/include/llvm/Target/TargetAsmInfo.h @@ -65,6 +65,12 @@ namespace llvm { K == DataRelRO || K == DataRelROLocal || K == RODataMergeConst || K == RODataMergeStr; } + + /// isReadOnlyWithDynamicInit - Return true if this data is readonly, but + /// the dynamic linker has to write to it to apply relocations. + bool isReadOnlyWithDynamicInit() const { + return K == DataRelRO || K == DataRelROLocal; + } bool isBSS() const { return K == BSS || K == ThreadBSS; @@ -87,6 +93,9 @@ namespace llvm { } bool isMergableString() const { return K == RODataMergeStr; } + bool isMergableConstant() const { + return K == RODataMergeStr || K == RODataMergeConst; + } static SectionKind get(Kind K) { SectionKind Res = { K }; |