aboutsummaryrefslogtreecommitdiffstats
path: root/tools/llvmc2/Tools.td
diff options
context:
space:
mode:
Diffstat (limited to 'tools/llvmc2/Tools.td')
-rw-r--r--tools/llvmc2/Tools.td7
1 files changed, 2 insertions, 5 deletions
diff --git a/tools/llvmc2/Tools.td b/tools/llvmc2/Tools.td
index 63b713f..42060e3 100644
--- a/tools/llvmc2/Tools.td
+++ b/tools/llvmc2/Tools.td
@@ -30,10 +30,7 @@ def llvm_gcc_c : Tool<
"llvm-g++ -E -x c $INFILE -o $OUTFILE -emit-llvm",
(default),
"llvm-g++ -c -x c $INFILE -o $OUTFILE -emit-llvm")),
- // TOFIX: Preprocessed files currently have suffix ".bc".
- (switch_option "E", (stop_compilation),
- // Make this possible:
- // (output_suffix "i"),
+ (switch_option "E", (stop_compilation),(output_suffix "i"),
(help "Stop after the preprocessing stage, do not run the compiler")),
(sink)
]>;
@@ -47,7 +44,7 @@ def llvm_gcc_cpp : Tool<
"llvm-g++ -E -x c++ $INFILE -o $OUTFILE -emit-llvm",
(default),
"llvm-g++ -c -x c++ $INFILE -o $OUTFILE -emit-llvm")),
- (switch_option "E", (stop_compilation)),
+ (switch_option "E", (stop_compilation), (output_suffix "i")),
(sink)
]>;