forked from OSchip/llvm-project
Driver: correct the backend option spelling
The backend option does not have an '-enable' prefix. llvm-svn: 211177
This commit is contained in:
parent
efd0785d82
commit
df903939c9
|
@ -3479,7 +3479,7 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
|
|||
options::OPT_mno_long_calls)) {
|
||||
if (A->getOption().matches(options::OPT_mlong_calls)) {
|
||||
CmdArgs.push_back("-backend-option");
|
||||
CmdArgs.push_back("-enable-arm-long-calls");
|
||||
CmdArgs.push_back("-arm-long-calls");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -7,9 +7,9 @@
|
|||
// RUN: %clang -target armv7-eabi -### -mlong-calls -mno-long-calls %s 2>&1 \
|
||||
// RUN: | FileCheck %s -check-prefix CHECK-NO-LONG-CALLS
|
||||
|
||||
// CHECK-DEFAULT-NOT: "-backend-option" "-enable-arm-long-calls"
|
||||
// CHECK-DEFAULT-NOT: "-backend-option" "-arm-long-calls"
|
||||
|
||||
// CHECK-LONG-CALLS: "-backend-option" "-enable-arm-long-calls"
|
||||
// CHECK-LONG-CALLS: "-backend-option" "-arm-long-calls"
|
||||
|
||||
// CHECK-NO-LONG-CALLS-NOT: "-backend-option" "-enable-arm-long-calls"
|
||||
// CHECK-NO-LONG-CALLS-NOT: "-backend-option" "-arm-long-calls"
|
||||
|
||||
|
|
Loading…
Reference in New Issue