aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2011-03-17 18:29:04 +0000
committerDaniel Dunbar <daniel@zuster.org>2011-03-17 18:29:04 +0000
commit0133917074027e4bd5cd6dabb9da03a6214a21b6 (patch)
tree7e113116caf021e4cfed514ad4b4ddba6b4b0be8
parent7f6f8c8ab29db9221ed40ab7d5317df29848cc52 (diff)
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
-rw-r--r--lib/Driver/Tools.cpp4
-rw-r--r--test/Driver/apple-kext-mkernel.c4
2 files changed, 4 insertions, 4 deletions
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"