diff options
author | diggerlin <digger.llvm@gmail.com> | 2019-11-15 11:30:19 -0500 |
---|---|---|
committer | diggerlin <digger.llvm@gmail.com> | 2019-11-15 11:30:19 -0500 |
commit | 3dfa975fb36fda1d8cff700d4251db330c83bfa3 (patch) | |
tree | 5b6885b87ecf8718d35c463856303d916b11b819 /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | |
parent | 840c891a8c248f1eb65981f492165b037e126652 (diff) | |
download | bcm5719-llvm-3dfa975fb36fda1d8cff700d4251db330c83bfa3.tar.gz bcm5719-llvm-3dfa975fb36fda1d8cff700d4251db330c83bfa3.zip |
Add read-only data assembly writing for aix
SUMMARY:
The patch will emit read-only variable assembly code for aix.
Reviewers: daltenty,Xiangling_Liao
Subscribers: rupprecht, seiyai,hiraditya
Differential Revision: https://reviews.llvm.org/D70182
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
-rw-r--r-- | llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp index f941b98890c..2dc13e9a250 100644 --- a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp +++ b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp @@ -1861,6 +1861,10 @@ MCSection *TargetLoweringObjectFileXCOFF::SelectSectionForGlobal( if (Kind.isBSS()) return DataSection; + if (Kind.isReadOnly() && !Kind.isMergeableConst() && + !Kind.isMergeableCString()) + return ReadOnlySection; + report_fatal_error("XCOFF other section types not yet implemented."); } |