[PATCH] D23600: [LTO] Stop always creating and running an LTO compilation if there is not a single LTO object

Teresa Johnson via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 17 07:03:26 PDT 2016


tejohnson added a comment.

Thanks for working on this one! I believe this will cause an issue for gold as it is setting up a PreOptModuleHook to add common symbols to the combined module. However, I wonder if this is not working anyway, as the bug I mentioned on IRC appears to be related to a common symbol that is being internalized improperly. Let me see if I can get a better handle on what is going on there this morning. I don't recall the reasons pcc wanted these to be added to a separate module rather than marked prevailing in the current module.

Regardless, I think it is probably better for the client to indicate explicitly to the API when it needs a combined module to be constructed, rather than inferring by the existence of any hooks.


https://reviews.llvm.org/D23600





More information about the llvm-commits mailing list