Previous commit would have a following flag overriding the behaviour
and not taken care of.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@200555
91177308-0d34-0410-b5e6-
96231b3b80d8
}
// Exception handling
- if (Args.hasArg(options::OPT_fno_exceptions)) {
- CmdArgs.push_back("-backend-option");
- CmdArgs.push_back("-arm-disable-ehabi");
+ 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");
+ }
}
}