aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/DataLayout.cpp
diff options
context:
space:
mode:
authorjasonliu <jasonliu.development@gmail.com>2020-07-02 22:45:59 +0000
committerjasonliu <jasonliu.development@gmail.com>2020-07-03 18:25:14 +0000
commit572dde55eebbe54eb90398c16c71d4376ca754e3 (patch)
tree10d012d3438023712910bf95ff665bd7ef0b9a8a /llvm/lib/IR/DataLayout.cpp
parentfc81f48fdeebd9e7c23900a410a39d3ced26019d (diff)
downloadllvm-572dde55eebbe54eb90398c16c71d4376ca754e3.zip
llvm-572dde55eebbe54eb90398c16c71d4376ca754e3.tar.gz
llvm-572dde55eebbe54eb90398c16c71d4376ca754e3.tar.bz2
[XCOFF][AIX] Use 'L..' instead of '.L' for getPrivateGlobalPrefix in DataLayout
Summary: D80831 changed part of the prefix usage for AIX. But there are other places getting prefix from DataLayout. This patch intends to make prefix usage consistent on AIX. Reviewed by: hubert.reinterpretcast, daltenty Differential Revision: https://reviews.llvm.org/D81270
Diffstat (limited to 'llvm/lib/IR/DataLayout.cpp')
-rw-r--r--llvm/lib/IR/DataLayout.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/IR/DataLayout.cpp b/llvm/lib/IR/DataLayout.cpp
index 25fed92..c44737c 100644
--- a/llvm/lib/IR/DataLayout.cpp
+++ b/llvm/lib/IR/DataLayout.cpp
@@ -153,6 +153,8 @@ const char *DataLayout::getManglingComponent(const Triple &T) {
return "-m:o";
if (T.isOSWindows() && T.isOSBinFormatCOFF())
return T.getArch() == Triple::x86 ? "-m:x" : "-m:w";
+ if (T.isOSBinFormatXCOFF())
+ return "-m:a";
return "-m:e";
}
@@ -444,6 +446,9 @@ void DataLayout::parseSpecifier(StringRef Desc) {
case 'x':
ManglingMode = MM_WinCOFFX86;
break;
+ case 'a':
+ ManglingMode = MM_XCOFF;
+ break;
}
break;
default: