]> granicus.if.org Git - llvm/commitdiff
[mips] Enable IAS by default for Android MIPS64
authorPetar Jovanovic <petar.jovanovic@imgtec.com>
Fri, 21 Jul 2017 14:25:42 +0000 (14:25 +0000)
committerPetar Jovanovic <petar.jovanovic@imgtec.com>
Fri, 21 Jul 2017 14:25:42 +0000 (14:25 +0000)
Follow up to r306280 in Clang.
Enable IAS by default for Android MIPS64 (uses N64 ABI).

Differential Revision: https://reviews.llvm.org/D35482

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@308742 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Mips/MCTargetDesc/MipsMCAsmInfo.cpp

index 11411d997bb3b1a6605fee6d9295da8a7d1fd907..e63304220ae5d4678a800259d5567b77665b0ad2 100644 (file)
@@ -61,4 +61,8 @@ MipsMCAsmInfo::MipsMCAsmInfo(const Triple &TheTriple) {
   // Enable IAS by default for Debian mips64/mips64el.
   if (TheTriple.getEnvironment() == Triple::GNUABI64)
     UseIntegratedAssembler = true;
+
+  // Enable IAS by default for Android mips64el that uses N64 ABI.
+  if (TheTriple.getArch() == Triple::mips64el && TheTriple.isAndroid())
+    UseIntegratedAssembler = true;
 }