summaryrefslogtreecommitdiffstats
path: root/clang/lib/Basic/Targets.cpp
diff options
context:
space:
mode:
authorUlrich Weigand <ulrich.weigand@de.ibm.com>2015-03-30 13:50:21 +0000
committerUlrich Weigand <ulrich.weigand@de.ibm.com>2015-03-30 13:50:21 +0000
commit881497ac2905a616b69f5ce36847169de1c391c1 (patch)
tree6ec9b2ff97acb03bd4966fc3e132ad25452c6721 /clang/lib/Basic/Targets.cpp
parent759449c76a913922fde0151ce20ed953a74435b4 (diff)
downloadbcm5719-llvm-881497ac2905a616b69f5ce36847169de1c391c1.tar.gz
bcm5719-llvm-881497ac2905a616b69f5ce36847169de1c391c1.zip
[SystemZ] Fix definition of IntMaxType / Int64Type
Like on other 64-bit platforms, Int64Type should be SignedLong on SystemZ, not SignedLongLong as per default. This could cause ABI incompatibilities in certain cases (e.g. name mangling). llvm-svn: 233544
Diffstat (limited to 'clang/lib/Basic/Targets.cpp')
-rw-r--r--clang/lib/Basic/Targets.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Basic/Targets.cpp b/clang/lib/Basic/Targets.cpp
index 7cb6480c2c7..0034ed83846 100644
--- a/clang/lib/Basic/Targets.cpp
+++ b/clang/lib/Basic/Targets.cpp
@@ -5404,6 +5404,8 @@ class SystemZTargetInfo : public TargetInfo {
public:
SystemZTargetInfo(const llvm::Triple &Triple) : TargetInfo(Triple) {
+ IntMaxType = SignedLong;
+ Int64Type = SignedLong;
TLSSupported = true;
IntWidth = IntAlign = 32;
LongWidth = LongLongWidth = LongAlign = LongLongAlign = 64;
OpenPOWER on IntegriCloud