[llvm-commits] [patch] Add support for .cfi_startproc/.cfi_endproc

Rafael EspĂ­ndola rafael.espindola at gmail.com
Sun Nov 28 17:26:08 PST 2010


This patch adds just enough cfi support to MC to be able to assemble

f:
        .cfi_startproc
        nop
        .cfi_endproc

There are two main issues other than the encoding itself:

*) The EH section has a R_X86_64_PC32 relocation, so I needed to
extend the streamer interface a bit
*) MC now needs access to more information that currently is in
CodeGen. For example, it need the dwarf number of the registers. Part
of the problem will go away once we fully transition to using the .cfi
directives, but some information sharing will likely remain.

I am not very happy with having a TargetAsmInfo class, but it looked
better than just giving MC access to the target machine. Let me know
if you have a better idea.

Cheers,
Rafael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cfi.patch
Type: text/x-patch
Size: 60587 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20101128/6b222e89/attachment.bin>


More information about the llvm-commits mailing list