[llvm-commits] [PATCH]Add fast path in gold plugin for ELF files

Ivan Krasin krasin at chromium.org
Fri Sep 9 09:17:33 PDT 2011


HI llvm team!

The attached patch makes the diagnostics in gold-plugin a little bit
more precise
and adds a fast path for skipping non-bitcode files, if Gold version
supports get_view (i.e. gold is more-or-less recent). The latter is
important for two reasons:

- it's the common case for linking with the Gold plugin. It's good to
avoid creating heavy-weight Bitcode reader.
- after the change that has enabled these diagnostic messages, the
users have started to see warnings like "bfd plugin: Failed to create
LTO module: Invalid bitcode signature" which is definitely not
desirable.

OK to commit?

krasin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gold_fast_precise.patch
Type: text/x-patch
Size: 895 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20110909/6caed734/attachment.bin>


More information about the llvm-commits mailing list