diff options
| author | Daniel Sanders <daniel.sanders@imgtec.com> | 2014-04-24 16:05:26 +0000 |
|---|---|---|
| committer | Daniel Sanders <daniel.sanders@imgtec.com> | 2014-04-24 16:05:26 +0000 |
| commit | 81ea601b54a45f7eb636d34465fa8ea19582c6ed (patch) | |
| tree | 690d73f087d57505fb946265a3c3427a7f597928 /clang/lib/Basic | |
| parent | 11a9b1b45a8e26b59998f82f435d25384680f80a (diff) | |
| download | bcm5719-llvm-81ea601b54a45f7eb636d34465fa8ea19582c6ed.tar.gz bcm5719-llvm-81ea601b54a45f7eb636d34465fa8ea19582c6ed.zip | |
[mips] Support 128-bit int in N32 ABI by overriding TargetInfo::hasInt128Type()
Summary: The condition in the base class is rather strange. It says a target has the 128-bit integer type if the size of a pointer is >= 64-bits. N32 has 32-bit pointers but 64-bit integers. I'm a bit reluctant to change this for all targets so this patch makes the method virtual and overrides it for MIPS64.
Reviewers: atanasyan
Reviewed By: atanasyan
Subscribers: llvm-commits
Differential Revision: http://reviews.llvm.org/D3472
llvm-svn: 207121
Diffstat (limited to 'clang/lib/Basic')
| -rw-r--r-- | clang/lib/Basic/Targets.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Basic/Targets.cpp b/clang/lib/Basic/Targets.cpp index 59f5a018b0b..f6ccbd17b9b 100644 --- a/clang/lib/Basic/Targets.cpp +++ b/clang/lib/Basic/Targets.cpp @@ -5874,6 +5874,8 @@ public: Aliases = GCCRegAliases; NumAliases = llvm::array_lengthof(GCCRegAliases); } + + bool hasInt128Type() const override { return true; } }; class Mips64EBTargetInfo : public Mips64TargetInfoBase { |

