diff options
author | Alexander Richardson <arichardson.kde@gmail.com> | 2018-06-25 16:49:52 +0000 |
---|---|---|
committer | Alexander Richardson <arichardson.kde@gmail.com> | 2018-06-25 16:49:52 +0000 |
commit | 983e34e0d748161c2f8bb21dfedc62ae1ddefda7 (patch) | |
tree | 2e655ffe14532c9a30d11434e6b338fe191799d5 /lib/Driver/ToolChains/CommonArgs.cpp | |
parent | e0e097a759cc3c58306d8201dcc4e2f5fcc84e63 (diff) | |
download | clang-983e34e0d748161c2f8bb21dfedc62ae1ddefda7.tar.gz |
Use Triple::isMIPS() instead of enumerating all Triples. NFC
Reviewed By: atanasyan
Differential Revision: https://reviews.llvm.org/D48549
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@335495 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/ToolChains/CommonArgs.cpp')
-rw-r--r-- | lib/Driver/ToolChains/CommonArgs.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/Driver/ToolChains/CommonArgs.cpp b/lib/Driver/ToolChains/CommonArgs.cpp index 5bd012a6d8..43f7d7f3b7 100644 --- a/lib/Driver/ToolChains/CommonArgs.cpp +++ b/lib/Driver/ToolChains/CommonArgs.cpp @@ -1030,10 +1030,7 @@ tools::ParsePICArgs(const ToolChain &ToolChain, const ArgList &Args) { if ((ROPI || RWPI) && (PIC || PIE)) ToolChain.getDriver().Diag(diag::err_drv_ropi_rwpi_incompatible_with_pic); - if (Triple.getArch() == llvm::Triple::mips || - Triple.getArch() == llvm::Triple::mipsel || - Triple.getArch() == llvm::Triple::mips64 || - Triple.getArch() == llvm::Triple::mips64el) { + if (Triple.isMIPS()) { StringRef CPUName; StringRef ABIName; mips::getMipsCPUAndABI(Args, Triple, CPUName, ABIName); |