[PATCH][MC/Dwarf] Allow to specify custom parameters for linetable emission.

Frédéric Riss via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 6 15:50:15 PDT 2015


> On Aug 6, 2015, at 3:21 PM, David Blaikie <dblaikie at gmail.com> wrote:
> 
> No need for "LTParams(), " in the MCAssembler ctor, is there?

'course not.

> Is the '+' needed here "+Params.DWARF2LineOpcodeBase - 1” ?

:-) I must have copied over a failed hunk from a .rej file and then clang-format-diff stuck it to the expression.

> There's some unrelated formatting changes (forceExpAbs?) that could be removed.
> 
> & I guess this has been run through clang-format?

Hence the formatting changes. 
New patch attached.


> On Thu, Aug 6, 2015 at 3:11 PM, Frédéric Riss <llvm-commits at lists.llvm.org <mailto:llvm-commits at lists.llvm.org>> wrote:
> Hi,
> 
> The attached patch (based on a patch from Adrian), allows to customize the encoding of the Dwarf line tables emitted by MC. llvm-dsymutil has be able to recreate line tables that were created by other compilers and that do not necessarily use the same settings. The patch is really mechanical just threading a new word-sized MCDwarfLineTableParams trust through he linetable routines. The patch is NFC wrt current uses.
> 
> 
> 
> 
> Fred 
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org <mailto:llvm-commits at lists.llvm.org>
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits <http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits>
> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150806/9115a30b/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: MC-dwarflinetable-params.patch
Type: application/octet-stream
Size: 16348 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150806/9115a30b/attachment.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150806/9115a30b/attachment-0001.html>


More information about the llvm-commits mailing list