[llvm-commits] emit-llvm

Rafael Espindola espindola at google.com
Thu Jun 3 09:48:12 PDT 2010


The attached patch makes the filename argument to also-emit-llvm optional and
adds a emit-llvm option that stops the process after writing the .bc file.

The behaviour is

ld ... -o foo -plugin-opt=emit-llvm               produces foo.bc only.
ld ... -o foo -plugin-opt=emit-llvm=bar.bc        produces bar.bc only.
ld ... -o foo -plugin-opt=also-emit-llvm          produces foo.bc and foo.
ld ... -o foo -plugin-opt=also-emit-llvm=bar.bc   produces bar.bc and foo.

I was not sure if in the emit-llvm case we just append a .bc or not. I decided
to do so to be consistent with also-emit-llvm and to match what llvm-ld does.

Cheers,
-- 
Rafael Ávila de Espíndola
-------------- next part --------------
A non-text attachment was scrubbed...
Name: emit-llvm.patch
Type: text/x-diff
Size: 3219 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20100603/ef86b09a/attachment.patch>


More information about the llvm-commits mailing list