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:
Evgeniy Stepanov 2014-02-02 10:39:45 +00:00
parent fa6298a162
commit 78901bd09e
2 changed files with 0 additions and 13 deletions

View File

@ -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

View File

@ -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"