diff options
author | Brad Smith <brad@comstyle.com> | 2018-06-29 19:03:03 +0000 |
---|---|---|
committer | Brad Smith <brad@comstyle.com> | 2018-06-29 19:03:03 +0000 |
commit | 3d0e91afdc40c5934822bd84158f62261acd506a (patch) | |
tree | 6b384b16b1a70b3071c44c886e2547ec906d64f9 /clang/lib/Driver/ToolChains/Gnu.cpp | |
parent | 38049a51bda3a7f453507c2cb42734b74ee7e6ae (diff) | |
download | bcm5719-llvm-3d0e91afdc40c5934822bd84158f62261acd506a.tar.gz bcm5719-llvm-3d0e91afdc40c5934822bd84158f62261acd506a.zip |
[mips][ias] Enable IAS by default for OpenBSD / FreeBSD mips64/mips64el.
Reviewers: atanasyan
Differential Revision: https://reviews.llvm.org/D48515
llvm-svn: 336004
Diffstat (limited to 'clang/lib/Driver/ToolChains/Gnu.cpp')
-rw-r--r-- | clang/lib/Driver/ToolChains/Gnu.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/clang/lib/Driver/ToolChains/Gnu.cpp b/clang/lib/Driver/ToolChains/Gnu.cpp index deaf51dc77e..2f632e2b5aa 100644 --- a/clang/lib/Driver/ToolChains/Gnu.cpp +++ b/clang/lib/Driver/ToolChains/Gnu.cpp @@ -2412,11 +2412,13 @@ bool Generic_GCC::IsIntegratedAssemblerDefault() const { return true; case llvm::Triple::mips64: case llvm::Triple::mips64el: - // Enabled for Debian and Android mips64/mipsel, as they can precisely - // identify the ABI in use (Debian) or only use N64 for MIPS64 (Android). - // Other targets are unable to distinguish N32 from N64. + // Enabled for Debian, Android, FreeBSD and OpenBSD mips64/mipsel, as they + // can precisely identify the ABI in use (Debian) or only use N64 for MIPS64 + // (Android). Other targets are unable to distinguish N32 from N64. if (getTriple().getEnvironment() == llvm::Triple::GNUABI64 || - getTriple().isAndroid()) + getTriple().isAndroid() || + getTriple().isOSFreeBSD() || + getTriple().isOSOpenBSD()) return true; return false; default: |