diff options
author | Simon Atanasyan <simon@atanasyan.com> | 2015-01-22 23:16:48 +0000 |
---|---|---|
committer | Simon Atanasyan <simon@atanasyan.com> | 2015-01-22 23:16:48 +0000 |
commit | 495523e4ea3a4619b4f3e49419dbd45060a3c7fb (patch) | |
tree | ea81f4c5129ce6d70cad12b238c075ba52343634 /clang/lib/Basic/Targets.cpp | |
parent | 68ab023ef75c38c59024d322c9d81dbd7ea9e475 (diff) | |
download | bcm5719-llvm-495523e4ea3a4619b4f3e49419dbd45060a3c7fb.tar.gz bcm5719-llvm-495523e4ea3a4619b4f3e49419dbd45060a3c7fb.zip |
[Mips] Fix type of 64-bit integer in case of MIPS N64 ABI
Differential Revision: http://reviews.llvm.org/D7127
llvm-svn: 226877
Diffstat (limited to 'clang/lib/Basic/Targets.cpp')
-rw-r--r-- | clang/lib/Basic/Targets.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/lib/Basic/Targets.cpp b/clang/lib/Basic/Targets.cpp index 476217146ed..c6c890d5d9f 100644 --- a/clang/lib/Basic/Targets.cpp +++ b/clang/lib/Basic/Targets.cpp @@ -5908,6 +5908,8 @@ public: : MipsTargetInfoBase(Triple, "o32", "mips32r2") { SizeType = UnsignedInt; PtrDiffType = SignedInt; + Int64Type = SignedLongLong; + IntMaxType = Int64Type; MaxAtomicPromoteWidth = MaxAtomicInlineWidth = 32; } bool setABI(const std::string &Name) override { @@ -6037,6 +6039,8 @@ public: PointerWidth = PointerAlign = 64; SizeType = UnsignedLong; PtrDiffType = SignedLong; + Int64Type = SignedLong; + IntMaxType = Int64Type; } void setN32ABITypes() { @@ -6044,6 +6048,8 @@ public: PointerWidth = PointerAlign = 32; SizeType = UnsignedInt; PtrDiffType = SignedInt; + Int64Type = SignedLongLong; + IntMaxType = Int64Type; } bool setABI(const std::string &Name) override { |