[llvm-commits] .cfi_* directives
grosbach at apple.com
Thu Oct 28 10:38:53 PDT 2010
On Oct 28, 2010, at 10:04 AM, Chris Lattner wrote:
> 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.
Speaking from the perspective of having had to try reading the EH information in the current .s files, I vigorously agree. This would be great.
More information about the llvm-commits