From 8981b6e86f5031fd81be0c24137af065bef726ac Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Wed, 18 Jun 2014 16:52:24 +0000 Subject: [PATCH] Driver: correct the backend option spelling The backend option does not have an '-enable' prefix. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@211177 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Driver/Tools.cpp | 2 +- test/Driver/arm-long-calls.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp index e49267acd1..2f866215e1 100644 --- a/lib/Driver/Tools.cpp +++ b/lib/Driver/Tools.cpp @@ -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"); } } } diff --git a/test/Driver/arm-long-calls.c b/test/Driver/arm-long-calls.c index 8181f9d0f4..62294a09c2 100644 --- a/test/Driver/arm-long-calls.c +++ b/test/Driver/arm-long-calls.c @@ -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" -- 2.40.0