[llvm-commits] [llvm] r77499 - /llvm/trunk/utils/TableGen/AsmWriterEmitter.cpp

David Greene dag at cray.com
Fri Jul 31 12:58:08 PDT 2009


On Friday 31 July 2009 14:52, Chris Lattner wrote:

> > This is kind of an ugly way to output a mix of data and
> > instructions.  I
> > wonder if we can invent a better way to support this in the future.
>
> This specific one must be emitted that way exactly because of the way
> TLS relocations work on ELF.  Yes, it's a gross hack, but I don't
> think there is a much better way to do it.  The actual formatting of
> the instructions emitted doesn't matter of course, they could be
> emitted onto multiple lines etc if desired.

It's actually the formatting I was talking about.  I understand the TLS
relocation issue.  Right now I don't think it's easy to make AsmWriterEmitter
output this as multiple lines without hard-coding \n into the string, and that 
won't get picked up by the column padding code as a new line since we're 
only looking at tabs and operand count.

Not a big deal right now, just something I noted.

                             -Dave



More information about the llvm-commits mailing list