forked from OSchip/llvm-project
parent
1971c3508a
commit
7a8b31d631
|
@ -794,10 +794,11 @@ void Clang::AddARMTargetArgs(const ArgList &Args,
|
|||
case llvm::Triple::EABI:
|
||||
ABIName = "aapcs";
|
||||
break;
|
||||
// This is also the case for netbsd.
|
||||
case llvm::Triple::GNU:
|
||||
default:
|
||||
ABIName = "apcs-gnu";
|
||||
if (Triple.getOS() == llvm::Triple::NetBSD)
|
||||
ABIName = "apcs-gnu";
|
||||
else
|
||||
ABIName = "aapcs";
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
// The default ABI is apcs
|
||||
// The default ABI is aapcs
|
||||
// RUN: %clang -target arm--- %s -### -o %t.o 2>&1 \
|
||||
// RUN: | FileCheck -check-prefix=CHECK-APCS-GNU %s
|
||||
// RUN: | FileCheck -check-prefix=CHECK-AAPCS %s
|
||||
// RUN: %clang -target armeb--- %s -### -o %t.o 2>&1 \
|
||||
// RUN: | FileCheck -check-prefix=CHECK-APCS-GNU %s
|
||||
// RUN: | FileCheck -check-prefix=CHECK-AAPCS %s
|
||||
// RUN: %clang -target thumb--- %s -### -o %t.o 2>&1 \
|
||||
// RUN: | FileCheck -check-prefix=CHECK-APCS-GNU %s
|
||||
// RUN: | FileCheck -check-prefix=CHECK-AAPCS %s
|
||||
// RUN: %clang -target thumbeb--- %s -### -o %t.o 2>&1 \
|
||||
// RUN: | FileCheck -check-prefix=CHECK-APCS-GNU %s
|
||||
// RUN: | FileCheck -check-prefix=CHECK-AAPCS %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 \
|
||||
|
|
Loading…
Reference in New Issue