Driver: correct the backend option spelling

The backend option does not have an '-enable' prefix.

llvm-svn: 211177
This commit is contained in:
Saleem Abdulrasool 2014-06-18 16:52:24 +00:00
parent efd0785d82
commit df903939c9
2 changed files with 4 additions and 4 deletions

View File

@ -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");
}
}
}

View File

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