This implements -dry-run for llvmc2: $ llvmc2 -dry-run main.c llvm-g++ -c -x c main.c -o /tmp/llvm_bGw2gN/main.bc -emit-llvm llc -f /tmp/llvm_bGw2gN/main.bc -o /tmp/llvm_bGw2gN/main.s llvm-gcc -c -x assembler /tmp/llvm_bGw2gN/main.s -o /tmp/llvm_bGw2gN/main.o llvm-gcc /tmp/llvm_bGw2gN/main.o -o a.out $ llvmc2 -dry-run -opt main.c llvm-g++ -c -x c main.c -o /tmp/llvm_UGZtwL/main.bc -emit-llvm opt /tmp/llvm_UGZtwL/main.bc -o /tmp/llvm_UGZtwL/main.bc llc -f /tmp/llvm_UGZtwL/main.bc -o /tmp/llvm_UGZtwL/main.s llvm-gcc -c -x assembler /tmp/llvm_UGZtwL/main.s -o /tmp/llvm_UGZtwL/main.o llvm-gcc /tmp/llvm_UGZtwL/main.o -o a.out -------------- next part -------------- A non-text attachment was scrubbed... Name: llvmc2-dry-run.patch Type: text/x-diff Size: 1070 bytes Desc: not available URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20080530/974e9c87/attachment.patch>
Hi Holger, Holger Schurig <hs4233 <at> mail.mn-solutions.de> writes:> > This implements -dry-run for llvmc2: > > [...]Applied, thanks! [Looks like the previous message didn't make it to the mailing list - that's why it took so long for me to reply.]