These changes make it impossible to use ARM EHABI for stack unwinding without
enabling exceptions and break AddressSanitizer on ARM.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@200627
91177308-0d34-0410-b5e6-
96231b3b80d8
CmdArgs.push_back("-backend-option");
CmdArgs.push_back("-arm-reserve-r9");
}
-
- // Exception handling
- if (Arg *A = Args.getLastArg(options::OPT_fexceptions,
- options::OPT_fno_exceptions)) {
- if (A->getOption().matches(options::OPT_fno_exceptions)) {
- CmdArgs.push_back("-backend-option");
- CmdArgs.push_back("-arm-disable-ehabi");
- }
- }
}
// Get CPU and ABI names. They are not independent
+++ /dev/null
-// RUN: %clang -target arm-none-gnueeabi -fno-exceptions -### %s 2> %t
-// RUN: FileCheck --check-prefix=CHECK-NOEH < %t %s
-
-// CHECK-NOEH: "-backend-option" "-arm-disable-ehabi"