forked from OSchip/llvm-project
Add __ARM_DWARF_EH__ to signify the use of Itanium ABI for unwind
instructions. llvm-svn: 208719
This commit is contained in:
parent
4645b44fc6
commit
cc1edb5a45
|
@ -384,6 +384,17 @@ protected:
|
|||
Builder.defineMacro("__ELF__");
|
||||
if (Opts.POSIXThreads)
|
||||
Builder.defineMacro("_POSIX_THREADS");
|
||||
|
||||
switch (Triple.getArch()) {
|
||||
default:
|
||||
break;
|
||||
case llvm::Triple::arm:
|
||||
case llvm::Triple::armeb:
|
||||
case llvm::Triple::thumb:
|
||||
case llvm::Triple::thumbeb:
|
||||
Builder.defineMacro("__ARM_DWARF_EH__");
|
||||
break;
|
||||
}
|
||||
}
|
||||
public:
|
||||
NetBSDTargetInfo(const llvm::Triple &Triple) : OSTargetInfo<Target>(Triple) {
|
||||
|
|
|
@ -946,6 +946,7 @@
|
|||
// ARM-NETBSD-NOT:#define __ARMEB__ 1
|
||||
// ARM-NETBSD:#define __ARMEL__ 1
|
||||
// ARM-NETBSD:#define __ARM_ARCH_6J__ 1
|
||||
// ARM-NETBSD:#define __ARM_DWARF_EH__ 1
|
||||
// ARM-NETBSD:#define __ARM_EABI__ 1
|
||||
// ARM-NETBSD-NOT:#define __ARM_BIG_ENDIAN 1
|
||||
// ARM-NETBSD:#define __BYTE_ORDER__ __ORDER_LITTLE_ENDIAN__
|
||||
|
|
Loading…
Reference in New Issue