[llvm-dev] RFC [ThinLTO]: Promoting more aggressively in order to reduce incremental link time and allow sharing between linkage units
Rafael Espíndola via llvm-dev
llvm-dev at lists.llvm.org
Thu Apr 7 11:42:38 PDT 2016
> I imagine that for some linkers, it may not be possible to deal with this
> scheme. For example, I did some investigation last year and discovered that
> I could not use the gold plugin interface to load a native object file if we
> had already claimed it as an IR file. I wouldn't be surprised to learn that
> ld64 has similar problems.
Can't you just call add_input_file with the original file in addition
to any .o files you created during linking?
More information about the llvm-dev