diff options
author | Richard Osborne <richard@xmos.com> | 2009-08-17 16:37:11 +0000 |
---|---|---|
committer | Richard Osborne <richard@xmos.com> | 2009-08-17 16:37:11 +0000 |
commit | 94a2c1acaee29c4e74e9a2e35dbda7478d4fdb61 (patch) | |
tree | 428574de463188e2b522ebe19db9b4d65a0812ad /llvm/lib/Target/TargetLoweringObjectFile.cpp | |
parent | 9f57c29053af89e0b229661d1b67befcd8f0c35c (diff) | |
download | bcm5719-llvm-94a2c1acaee29c4e74e9a2e35dbda7478d4fdb61.tar.gz bcm5719-llvm-94a2c1acaee29c4e74e9a2e35dbda7478d4fdb61.zip |
Update getSectionForConstant() to to allow mergable sections to be nulled out
if not supported by the ELF subtarget.
llvm-svn: 79249
Diffstat (limited to 'llvm/lib/Target/TargetLoweringObjectFile.cpp')
-rw-r--r-- | llvm/lib/Target/TargetLoweringObjectFile.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Target/TargetLoweringObjectFile.cpp b/llvm/lib/Target/TargetLoweringObjectFile.cpp index d64cf07b01e..8e1351bc065 100644 --- a/llvm/lib/Target/TargetLoweringObjectFile.cpp +++ b/llvm/lib/Target/TargetLoweringObjectFile.cpp @@ -609,11 +609,11 @@ SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind, /// should be placed in. const MCSection *TargetLoweringObjectFileELF:: getSectionForConstant(SectionKind Kind) const { - 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; if (Kind.isReadOnly()) return ReadOnlySection; |