[ARM] Add missing -backend-option for -arm-execute-only

llvm-svn: 290110
This commit is contained in:
Prakhar Bahuguna 2016-12-19 15:43:33 +00:00
parent 24218d5993
commit 9390d84d10
2 changed files with 3 additions and 2 deletions

View File

@ -1158,6 +1158,7 @@ static void getARMTargetFeatures(const ToolChain &TC,
D.Diag(diag::err_opt_not_valid_with_opt) << A->getAsString(Args) << B->getAsString(Args);
}
CmdArgs.push_back("-backend-option");
CmdArgs.push_back("-arm-execute-only");
}
}

View File

@ -91,8 +91,8 @@
// RUN: | FileCheck %s -check-prefix CHECK-EXECUTE-ONLY-LONG-CALLS
//
// CHECK-NO-EXECUTE-ONLY-NOT: "-arm-execute-only"
// CHECK-EXECUTE-ONLY: "-arm-execute-only"
// CHECK-NO-EXECUTE-ONLY-NOT: "-backend-option" "-arm-execute-only"
// CHECK-EXECUTE-ONLY: "-backend-option" "-arm-execute-only"
// CHECK-EXECUTE-ONLY-NOT-SUPPORTED: error: execute only is not supported for the thumbv6m sub-architecture
// CHECK-EXECUTE-ONLY-NO-MOVT: error: option '-mexecute-only' cannot be specified with '-mno-movt'