diff options
| author | Simon Atanasyan <simon@atanasyan.com> | 2018-09-17 21:21:57 +0000 |
|---|---|---|
| committer | Simon Atanasyan <simon@atanasyan.com> | 2018-09-17 21:21:57 +0000 |
| commit | 9265dca8b51148f1a7849b454005d65cbbced5e9 (patch) | |
| tree | cdffb5b5f1d814b8726b51f5a84c398c71c6cb20 /llvm/lib/Target/Mips/MCTargetDesc/MipsABIInfo.cpp | |
| parent | bdf0381e216e2aaa1aa736fd288d94786e4447e0 (diff) | |
| download | bcm5719-llvm-9265dca8b51148f1a7849b454005d65cbbced5e9.tar.gz bcm5719-llvm-9265dca8b51148f1a7849b454005d65cbbced5e9.zip | |
[mips] Fix MIPS N32 ABI triples support
Add support mips64(el)-linux-gnuabin32 triples, and set them to N32.
Debian architecture name mipsn32/mipsn32el are also added. Set
UseIntegratedAssembler for N32 if we can detect it.
Patch by YunQiang Su.
Differential revision: https://reviews.llvm.org/D51408
llvm-svn: 342416
Diffstat (limited to 'llvm/lib/Target/Mips/MCTargetDesc/MipsABIInfo.cpp')
| -rw-r--r-- | llvm/lib/Target/Mips/MCTargetDesc/MipsABIInfo.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/Mips/MCTargetDesc/MipsABIInfo.cpp b/llvm/lib/Target/Mips/MCTargetDesc/MipsABIInfo.cpp index bf139088028..18d7dd99be3 100644 --- a/llvm/lib/Target/Mips/MCTargetDesc/MipsABIInfo.cpp +++ b/llvm/lib/Target/Mips/MCTargetDesc/MipsABIInfo.cpp @@ -55,6 +55,8 @@ MipsABIInfo MipsABIInfo::computeTargetABI(const Triple &TT, StringRef CPU, return MipsABIInfo::N32(); if (Options.getABIName().startswith("n64")) return MipsABIInfo::N64(); + if (TT.getEnvironment() == llvm::Triple::GNUABIN32) + return MipsABIInfo::N32(); assert(Options.getABIName().empty() && "Unknown ABI option for MIPS"); if (TT.isMIPS64()) |

