From: Daniel Dunbar Date: Thu, 17 Mar 2011 18:29:04 +0000 (+0000) Subject: Driver/Darwin: These are command line options, not target features. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0133917074027e4bd5cd6dabb9da03a6214a21b6;p=clang Driver/Darwin: These are command line options, not target features. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@127820 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp index c5fbdef6e6..cf6a853952 100644 --- a/lib/Driver/Tools.cpp +++ b/lib/Driver/Tools.cpp @@ -594,10 +594,10 @@ void Clang::AddARMTargetArgs(const ArgList &Args, // Kernel code has more strict alignment requirements. if (KernelOrKext) { - CmdArgs.push_back("-target-feature"); + CmdArgs.push_back("-mllvm"); CmdArgs.push_back("-arm-long-calls"); - CmdArgs.push_back("-target-feature"); + CmdArgs.push_back("-mllvm"); CmdArgs.push_back("-arm-strict-align"); } } diff --git a/test/Driver/apple-kext-mkernel.c b/test/Driver/apple-kext-mkernel.c index 13f694d0af..a7a925ed5d 100644 --- a/test/Driver/apple-kext-mkernel.c +++ b/test/Driver/apple-kext-mkernel.c @@ -11,8 +11,8 @@ // RUN: -arch armv7 -mkernel -### -fsyntax-only %s 2> %t // RUN: FileCheck --check-prefix=CHECK-ARM < %t %s -// CHECK-ARM: "-target-feature" "-arm-long-calls" -// CHECK-ARM: "-target-feature" "-arm-strict-align" +// CHECK-ARM: "-mllvm" "-arm-long-calls" +// CHECK-ARM: "-mllvm" "-arm-strict-align" // CHECK-ARM: "-fno-builtin" // CHECK-ARM: "-fno-rtti" // CHECK-ARM: "-fno-common"