diff options
author | diggerlin <digger.llvm@gmail.com> | 2020-01-07 11:20:51 -0500 |
---|---|---|
committer | diggerlin <digger.llvm@gmail.com> | 2020-01-07 11:20:51 -0500 |
commit | a3832f33d9323a5080321ca52321efd9c5741b63 (patch) | |
tree | 21aa98cd9d211606fdbfefa92135e0b546b48895 /llvm/lib/CodeGen | |
parent | 9f2d8b5c0cdb31c5617476575c03826274ecbd25 (diff) | |
download | bcm5719-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.cpp | 2 |
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."); |