[llvm-dev] Getting Object Files During LTO

Quentin Colombet via llvm-dev llvm-dev at lists.llvm.org
Mon Aug 6 16:30:04 PDT 2018


Hi Bill,


2018-08-06 16:13 GMT-07:00 Bill Wendling via llvm-dev <llvm-dev at lists.llvm.org>:
> Is there a way to get object files from the LTO step before the linker
> performs the final link phase? What I'd like to do is given these bitcode
> files:
>
>   a.lto.o, b.lto.o, c.lto.o
>
> run LTO on them and get out the object files:
>
>   a.o, b.o, c.o
>
> (These .o files hold the code that is sent directly to the final link
> phase.)
>
> If there doesn't currently exist a way, is such a thing possible?

I don't think that's possible, because basically the LTO pipeline will
put all the input files into one module and we have no way to track
back what came from what, nor it made much sense after LTO does
inlining and such.
That said, for thin-LTO we may still have some of the information around.

+ Teresa, she should know.

Cheers,
-Quentin

>
> -bw
>
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>


More information about the llvm-dev mailing list