<div dir="ltr">Hi,<div><br></div><div style>I often use the gold plugin's also-emit-llvm option to verify the final LLVM bitcode of a program. However, I realized that the gold plugin generates the bitcode file before running LTO optimizations, such that the changes performed by LTO are not reflected in the bitcode file.</div>

<div style><br></div><div style>What is the reason for this behavior?</div><div style><br></div><div style>Attached is a patch that would swap the order of the two actions, and cause the bitcode file to be emitted after link time optimization. What do people think about this?</div>

<div style><br></div><div style>Best,</div><div style>Jonas</div></div>