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/Target/PowerPC | |
| 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/Target/PowerPC')
| -rw-r--r-- | llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp b/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp index db6271e3b7d..40e7f884ddc 100644 --- a/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp +++ b/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp @@ -1800,8 +1800,7 @@ void PPCAIXAsmPrinter::EmitGlobalVariable(const GlobalVariable *GV) { SectionKind GVKind = getObjFileLowering().getKindForGlobal(GV, TM); if ((!GVKind.isCommon() && !GVKind.isBSS() && !GVKind.isData() && !GVKind.isReadOnly()) || - GVKind.isMergeable2ByteCString() || GVKind.isMergeable4ByteCString() || - GVKind.isMergeableConst()) + GVKind.isMergeable2ByteCString() || GVKind.isMergeable4ByteCString()) report_fatal_error("Encountered a global variable kind that is " "not supported yet."); |

