summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authordiggerlin <digger.llvm@gmail.com>2020-01-07 11:20:51 -0500
committerdiggerlin <digger.llvm@gmail.com>2020-01-07 11:20:51 -0500
commita3832f33d9323a5080321ca52321efd9c5741b63 (patch)
tree21aa98cd9d211606fdbfefa92135e0b546b48895 /llvm/lib/CodeGen
parent9f2d8b5c0cdb31c5617476575c03826274ecbd25 (diff)
downloadbcm5719-llvm-a3832f33d9323a5080321ca52321efd9c5741b63.tar.gz
bcm5719-llvm-a3832f33d9323a5080321ca52321efd9c5741b63.zip
[AIX][XCOFF]Implement mergeable const
SUMMARY: In this patch, we map mergeable const objects to the read-only section in the same manner as const objects that are not mergeable. Reviewers: hubert.reinterpretcast,jasonliu Subscribers: wuzish, nemanjai, hiraditya Differential Revision: https://reviews.llvm.org/D71551
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
index 4b825c7af07..847825ef3ce 100644
--- a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
+++ b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
@@ -1879,7 +1879,7 @@ MCSection *TargetLoweringObjectFileXCOFF::SelectSectionForGlobal(
if (Kind.isBSS())
return DataSection;
- if (Kind.isReadOnly() && !Kind.isMergeableConst())
+ if (Kind.isReadOnly())
return ReadOnlySection;
report_fatal_error("XCOFF other section types not yet implemented.");
OpenPOWER on IntegriCloud