[cfe-commits] r127820 - in /cfe/trunk: lib/Driver/Tools.cpp test/Driver/apple-kext-mkernel.c
Daniel Dunbar
daniel at zuster.org
Thu Mar 17 11:29:04 PDT 2011
Author: ddunbar
Date: Thu Mar 17 13:29:04 2011
New Revision: 127820
URL: http://llvm.org/viewvc/llvm-project?rev=127820&view=rev
Log:
Driver/Darwin: These are command line options, not target features.
Modified:
cfe/trunk/lib/Driver/Tools.cpp
cfe/trunk/test/Driver/apple-kext-mkernel.c
Modified: cfe/trunk/lib/Driver/Tools.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.cpp?rev=127820&r1=127819&r2=127820&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Tools.cpp (original)
+++ cfe/trunk/lib/Driver/Tools.cpp Thu Mar 17 13:29:04 2011
@@ -594,10 +594,10 @@
// 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");
}
}
Modified: cfe/trunk/test/Driver/apple-kext-mkernel.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/apple-kext-mkernel.c?rev=127820&r1=127819&r2=127820&view=diff
==============================================================================
--- cfe/trunk/test/Driver/apple-kext-mkernel.c (original)
+++ cfe/trunk/test/Driver/apple-kext-mkernel.c Thu Mar 17 13:29:04 2011
@@ -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"
More information about the cfe-commits
mailing list