case llvm::Triple::EABI:
ABIName = "aapcs";
break;
+ // This is also the case for netbsd.
+ case llvm::Triple::GNU:
default:
- if (Triple.getOS() == llvm::Triple::NetBSD)
- ABIName = "apcs-gnu";
- else
- ABIName = "aapcs";
+ ABIName = "apcs-gnu";
break;
}
}
-// The default ABI is aapcs
+// The default ABI is apcs
// RUN: %clang -target arm--- %s -### -o %t.o 2>&1 \
-// RUN: | FileCheck -check-prefix=CHECK-AAPCS %s
+// RUN: | FileCheck -check-prefix=CHECK-APCS-GNU %s
// RUN: %clang -target armeb--- %s -### -o %t.o 2>&1 \
-// RUN: | FileCheck -check-prefix=CHECK-AAPCS %s
+// RUN: | FileCheck -check-prefix=CHECK-APCS-GNU %s
// RUN: %clang -target thumb--- %s -### -o %t.o 2>&1 \
-// RUN: | FileCheck -check-prefix=CHECK-AAPCS %s
+// RUN: | FileCheck -check-prefix=CHECK-APCS-GNU %s
// RUN: %clang -target thumbeb--- %s -### -o %t.o 2>&1 \
-// RUN: | FileCheck -check-prefix=CHECK-AAPCS %s
+// RUN: | FileCheck -check-prefix=CHECK-APCS-GNU %s
// MachO targets default to apcs-gnu, except for m-class processors
// RUN: %clang -target arm--darwin- -arch armv7s %s -### -o %t.o 2>&1 \