[cfe-commits] r72780 - in /cfe/trunk: include/clang/Driver/Options.def lib/Driver/Tools.cpp test/CodeGen/always_inline.c
Daniel Dunbar
daniel at zuster.org
Wed Jun 3 09:16:27 PDT 2009
Author: ddunbar
Date: Wed Jun 3 11:16:27 2009
New Revision: 72780
URL: http://llvm.org/viewvc/llvm-project?rev=72780&view=rev
Log:
Driver: Support -mllvm; this just forwards options to clang-cc.
Modified:
cfe/trunk/include/clang/Driver/Options.def
cfe/trunk/lib/Driver/Tools.cpp
cfe/trunk/test/CodeGen/always_inline.c
Modified: cfe/trunk/include/clang/Driver/Options.def
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Driver/Options.def?rev=72780&r1=72779&r2=72780&view=diff
==============================================================================
--- cfe/trunk/include/clang/Driver/Options.def (original)
+++ cfe/trunk/include/clang/Driver/Options.def Wed Jun 3 11:16:27 2009
@@ -493,6 +493,7 @@
OPTION("-mfix-and-continue", mfix_and_continue, Flag, clang_ignored_m_Group, INVALID, "", 0, 0, 0)
OPTION("-miphoneos-version-min=", miphoneos_version_min_EQ, Joined, m_Group, INVALID, "", 0, 0, 0)
OPTION("-mkernel", mkernel, Flag, m_Group, INVALID, "", 0, 0, 0)
+OPTION("-mllvm", mllvm, Separate, INVALID, INVALID, "", 0, 0, 0)
OPTION("-mmacosx-version-min=", mmacosx_version_min_EQ, Joined, m_Group, INVALID, "", 0, 0, 0)
OPTION("-mmmx", mmmx, Flag, m_x86_Features_Group, INVALID, "", 0, 0, 0)
OPTION("-mno-3dnowa", mno_3dnowa, Flag, m_x86_Features_Group, INVALID, "", 0, 0, 0)
Modified: cfe/trunk/lib/Driver/Tools.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.cpp?rev=72780&r1=72779&r2=72780&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Tools.cpp (original)
+++ cfe/trunk/lib/Driver/Tools.cpp Wed Jun 3 11:16:27 2009
@@ -562,6 +562,7 @@
Args.AddLastArg(CmdArgs, options::OPT_dD);
Args.AddAllArgValues(CmdArgs, options::OPT_Xclang);
+ Args.AddAllArgValues(CmdArgs, options::OPT_mllvm);
if (Output.getType() == types::TY_Dependencies) {
// Handled with other dependency code.
Modified: cfe/trunk/test/CodeGen/always_inline.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/always_inline.c?rev=72780&r1=72779&r2=72780&view=diff
==============================================================================
--- cfe/trunk/test/CodeGen/always_inline.c (original)
+++ cfe/trunk/test/CodeGen/always_inline.c Wed Jun 3 11:16:27 2009
@@ -1,6 +1,6 @@
-// RUN: clang-cc -emit-llvm -o %t %s &&
+// RUN: clang -emit-llvm -S -o %t %s &&
// RUN: grep '@f0' %t | count 0 &&
-// RUN: clang-cc -disable-llvm-optzns -emit-llvm -o %t %s &&
+// RUN: clang -mllvm -disable-llvm-optzns -emit-llvm -S -o %t %s &&
// RUN: grep '@f0' %t | count 2
//static int f0() {
More information about the cfe-commits
mailing list