From b917c327ed880036a94aeb325aee20297a33702f Mon Sep 17 00:00:00 2001 From: Prakhar Bahuguna Date: Mon, 19 Dec 2016 15:43:33 +0000 Subject: [PATCH] [ARM] Add missing -backend-option for -arm-execute-only git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@290110 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Driver/Tools.cpp | 1 + test/Driver/arm-execute-only.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp index 253a25695f..251187a25c 100644 --- a/lib/Driver/Tools.cpp +++ b/lib/Driver/Tools.cpp @@ -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"); } } diff --git a/test/Driver/arm-execute-only.c b/test/Driver/arm-execute-only.c index f564594b83..7010bbc837 100644 --- a/test/Driver/arm-execute-only.c +++ b/test/Driver/arm-execute-only.c @@ -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' -- 2.40.0