diff options
author | Chris Lattner <sabre@nondot.org> | 2009-08-15 06:08:34 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-08-15 06:08:34 +0000 |
commit | 203b3e9e2a61be88e8d36a58c5615712e34c6a47 (patch) | |
tree | 42988c24623e461c42774b07dc55ec73f6db9530 /lib/Target/TargetLoweringObjectFile.cpp | |
parent | 7d996d907f593d9d1a4c9d79805b2b7adee63f24 (diff) |
If ELF subtargets don't want to support 4/8/16-byte mergable sections, allow
them to null out the default section pointers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79078 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/TargetLoweringObjectFile.cpp')
-rw-r--r-- | lib/Target/TargetLoweringObjectFile.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Target/TargetLoweringObjectFile.cpp b/lib/Target/TargetLoweringObjectFile.cpp index 4be0b9e4e0..a695e2412c 100644 --- a/lib/Target/TargetLoweringObjectFile.cpp +++ b/lib/Target/TargetLoweringObjectFile.cpp @@ -578,11 +578,11 @@ SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind, } if (Kind.isMergeableConst()) { - if (Kind.isMergeableConst4()) + if (Kind.isMergeableConst4() && MergeableConst4Section) return MergeableConst4Section; - if (Kind.isMergeableConst8()) + if (Kind.isMergeableConst8() && MergeableConst8Section) return MergeableConst8Section; - if (Kind.isMergeableConst16()) + if (Kind.isMergeableConst16() && MergeableConst16Section) return MergeableConst16Section; return ReadOnlySection; // .const } |