Skip to content

Commit 033a4bc

Browse files
committed
Driver/Darwin: These are command line options, not target features.
llvm-svn: 127820
1 parent 1d733e2 commit 033a4bc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

clang/lib/Driver/Tools.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -594,10 +594,10 @@ void Clang::AddARMTargetArgs(const ArgList &Args,
594594

595595
// Kernel code has more strict alignment requirements.
596596
if (KernelOrKext) {
597-
CmdArgs.push_back("-target-feature");
597+
CmdArgs.push_back("-mllvm");
598598
CmdArgs.push_back("-arm-long-calls");
599599

600-
CmdArgs.push_back("-target-feature");
600+
CmdArgs.push_back("-mllvm");
601601
CmdArgs.push_back("-arm-strict-align");
602602
}
603603
}

clang/test/Driver/apple-kext-mkernel.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
// RUN: -arch armv7 -mkernel -### -fsyntax-only %s 2> %t
1212
// RUN: FileCheck --check-prefix=CHECK-ARM < %t %s
1313

14-
// CHECK-ARM: "-target-feature" "-arm-long-calls"
15-
// CHECK-ARM: "-target-feature" "-arm-strict-align"
14+
// CHECK-ARM: "-mllvm" "-arm-long-calls"
15+
// CHECK-ARM: "-mllvm" "-arm-strict-align"
1616
// CHECK-ARM: "-fno-builtin"
1717
// CHECK-ARM: "-fno-rtti"
1818
// CHECK-ARM: "-fno-common"

0 commit comments

Comments
 (0)