mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-25 20:59:51 +00:00
LLVMC2: -emit-llvm stops compilation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59586 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ff6477b720
commit
911cfdb7d7
@ -25,6 +25,8 @@ def llvm_gcc_c : Tool<
|
||||
"llvm-gcc -c -x c $INFILE",
|
||||
(default),
|
||||
"llvm-gcc -c -x c $INFILE -o $OUTFILE -emit-llvm")),
|
||||
(switch_option "emit-llvm", (stop_compilation),
|
||||
(help "Emit LLVM intermediate files instead of native object files")),
|
||||
(switch_option "E", (stop_compilation),
|
||||
(help "Stop after the preprocessing stage, do not run the compiler")),
|
||||
(switch_option "fsyntax-only", (stop_compilation),
|
||||
|
4
test/LLVMC/emit-llvm.c
Normal file
4
test/LLVMC/emit-llvm.c
Normal file
@ -0,0 +1,4 @@
|
||||
// RUN: llvmc2 -c -emit-llvm -o - %s | llvm-dis | grep "@f0()" | count 1
|
||||
|
||||
int f0(void) {
|
||||
}
|
Loading…
Reference in New Issue
Block a user