forked from OSchip/llvm-project
Revert r200555, r200545.
These changes make it impossible to use ARM EHABI for stack unwinding without enabling exceptions and break AddressSanitizer on ARM. llvm-svn: 200627
This commit is contained in:
parent
fa6298a162
commit
78901bd09e
|
@ -830,15 +830,6 @@ void Clang::AddARMTargetArgs(const ArgList &Args,
|
||||||
CmdArgs.push_back("-backend-option");
|
CmdArgs.push_back("-backend-option");
|
||||||
CmdArgs.push_back("-arm-reserve-r9");
|
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
|
// Get CPU and ABI names. They are not independent
|
||||||
|
|
|
@ -1,4 +0,0 @@
|
||||||
// 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"
|
|
Loading…
Reference in New Issue