[llvm-dev] Emit LLVM bitcode after ThinLTO

Stephan Z via llvm-dev llvm-dev at lists.llvm.org
Sat Jul 11 21:53:20 PDT 2020


Hi,

I wanted to get the linked result in LLVM bitcode format.

With LTO, this can be done by -flto -Wl,-plugin-opt,emit-llvm. Instead of
generating native executables, it outputs a file with bitcode format.

Does this still work with -flto=thin? -flto=thin -Wl,-plugin-opt,emit-llvm
outputs a bitcode file, but its file size is too small, and does not
contain all contents.

What is the correct way to emit LLVM bitcode after ThinLTO?

Thank you, S
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20200711/b3ef506e/attachment.html>


More information about the llvm-dev mailing list