[PATCH] D29475: [LTO] Add ability to emit assembly to new LTO API

Rafael Avila de Espindola via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 3 14:31:38 PST 2017

> Yes, that’d be closer to what clang is doing with save-temps. 
> I tried to emit both ASM and object at the same time in the past, but the MC layer really does not like that. Jim told that it would be a major redesign to achieve it (cleanly).

Since you mentioned :-)

One annoying thing it has is how different the obj and asm streamers
are. I would like to at some point make the asm streamer wait until the
end to start printing anything. That would allow us to produce far
cleaner assembly by for example not producing local symbols that are not

That is not all that is needed to be able to write both asm and obj, but
is a step in that direction.


More information about the llvm-commits mailing list