diff --git a/clang/lib/Driver/Tools.cpp b/clang/lib/Driver/Tools.cpp index fafb95155dd1..0be232f15c89 100644 --- a/clang/lib/Driver/Tools.cpp +++ b/clang/lib/Driver/Tools.cpp @@ -830,15 +830,6 @@ void Clang::AddARMTargetArgs(const ArgList &Args, 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 diff --git a/clang/test/Driver/arm-no-exception.c b/clang/test/Driver/arm-no-exception.c deleted file mode 100644 index 6c6036e06ca9..000000000000 --- a/clang/test/Driver/arm-no-exception.c +++ /dev/null @@ -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"