[llvm-commits] [llvm] r60047 - /llvm/trunk/include/llvm/CompilerDriver/Tools.td
Mikhail Glushenkov
foldr at codedgers.com
Tue Nov 25 13:35:20 PST 2008
Author: foldr
Date: Tue Nov 25 15:35:20 2008
New Revision: 60047
URL: http://llvm.org/viewvc/llvm-project?rev=60047&view=rev
Log:
Make -fsyntax-only, -include and -emit-llvm work for C++ and Objective-C/C++.
Modified:
llvm/trunk/include/llvm/CompilerDriver/Tools.td
Modified: llvm/trunk/include/llvm/CompilerDriver/Tools.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CompilerDriver/Tools.td?rev=60047&r1=60046&r2=60047&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CompilerDriver/Tools.td (original)
+++ llvm/trunk/include/llvm/CompilerDriver/Tools.td Tue Nov 25 15:35:20 2008
@@ -22,7 +22,7 @@
(default),
"llvm-gcc -E -x c++ $INFILE"),
(switch_on "fsyntax-only"),
- "llvm-gcc -c -x c $INFILE",
+ "llvm-gcc -fsyntax-only -x c $INFILE",
(default),
"llvm-gcc -c -x c $INFILE -o $OUTFILE -emit-llvm")),
(switch_option "emit-llvm", (stop_compilation),
@@ -46,9 +46,14 @@
"llvm-g++ -E -x c++ $INFILE -o $OUTFILE",
(default),
"llvm-g++ -E -x c++ $INFILE"),
+ (switch_on "fsyntax-only"),
+ "llvm-g++ -fsyntax-only -x c++ $INFILE",
(default),
"llvm-g++ -c -x c++ $INFILE -o $OUTFILE -emit-llvm")),
+ (switch_option "emit-llvm", (stop_compilation)),
(switch_option "E", (stop_compilation)),
+ (switch_option "fsyntax-only", (stop_compilation)),
+ (parameter_list_option "include", (forward)),
(sink)
]>;
@@ -62,9 +67,14 @@
"llvm-gcc -E -x objective-c $INFILE -o $OUTFILE",
(default),
"llvm-gcc -E -x objective-c $INFILE"),
+ (switch_on "fsyntax-only"),
+ "llvm-gcc -fsyntax-only -x objective-c $INFILE",
(default),
"llvm-gcc -c -x objective-c $INFILE -o $OUTFILE -emit-llvm")),
+ (switch_option "emit-llvm", (stop_compilation)),
(switch_option "E", (stop_compilation)),
+ (switch_option "fsyntax-only", (stop_compilation)),
+ (parameter_list_option "include", (forward)),
(sink)
]>;
@@ -78,9 +88,14 @@
"llvm-gcc -E -x objective-c++ $INFILE -o $OUTFILE",
(default),
"llvm-gcc -E -x objective-c++ $INFILE"),
+ (switch_on "fsyntax-only"),
+ "llvm-gcc -fsyntax-only -x objective-c++ $INFILE",
(default),
"llvm-gcc -c -x objective-c++ $INFILE -o $OUTFILE -emit-llvm")),
+ (switch_option "emit-llvm", (stop_compilation)),
(switch_option "E", (stop_compilation)),
+ (switch_option "fsyntax-only", (stop_compilation)),
+ (parameter_list_option "include", (forward)),
(sink)
]>;
More information about the llvm-commits
mailing list