[llvm-dev] Question about -flto behavior
David Blaikie via llvm-dev
llvm-dev at lists.llvm.org
Mon Oct 18 14:20:38 PDT 2021
Yeah, sounds expected to me - flto produces object files that aren't really
object files - instead they're LLVM IR (bitcode) that the linker
identifies, then calls back into LLVM to link the IR, optimize on that IR,
then produce object code/assembly/whatever).
So the "assembly" form of an "object" (really LLVM bitcode) file is LLVM
On Mon, Oct 18, 2021 at 1:56 PM Snider, Todd via llvm-dev <
llvm-dev at lists.llvm.org> wrote:
> Hi All,
> When -flto is combined with -S on the clang command line, the output .s
> file contains IR content instead of target assembly language.
> Is this expected/correct behavior? I was anticipating that the output .s
> file would contain target assembly code.
> ~ Todd Snider
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev