[llvm-commits] .cfi_* directives
Chris Lattner
clattner at apple.com
Thu Oct 28 10:04:35 PDT 2010
On Oct 28, 2010, at 9:50 AM, Rafael EspĂndola wrote:
> I was doing a quick check on what would be needed to make llvm-mc
> handle the assembly outputted by gcc. One big item that showed up was
> the the .cfi_* directives.
>
> These directives are used to shift part of the responsibility of
> producing the .eh_frame section from the compiler to the assembler.
> They do produce much smaller assembly files, but that is probably not
> an issue for us. If implementing them, each directive would become a
> method in the streamer interface. This might make it a bit easier for
> other users to produce frame information.
>
> For now I will just push the testing using -fno-dwarf2-cfi-asm, but do
> you think it would be a good idea to eventually implement the .cfi_*
> directives or is this better done in the compiler anyway?
I think that this would be great to add to the MC assembler. Kevin recently implemented the dwarf .file/.loc directives (for example), which are similar in spirit. I'm all for making the .s files generated by the compiler more readable.
-Chris
More information about the llvm-commits
mailing list