[llvm-commits] [patch] Switch LTO to use MC

Rafael Ávila de Espíndola rafael.espindola at gmail.com
Sun Feb 27 08:55:23 PST 2011


  >> Btw, I have seen the 3.0 planned type changes mentioned some times,
>> but I don't know what they are in detail. Is there a doc
>> somewhere?
>
> I wrote them up and sent a link to llvmdev.

Thanks!

>> Yes, I just need a way to represent MemoryBuffers that are not NULL
>> terminated :-)
>
> I agree that having null termination be optional would be useful.
> Clang really wants this (to make its lexer faster) but I don't think
> anyone else cares.  I'd be fine with eliminating this requirement in
> the MemBuffer API and giving MemoryBuffer::getFileOrSTDIN a flags
> argument, where one flag would be "RequiresNullTerminatedBuffer" or
> something like that.

OK, I will give that a try. I would probably still wrap MemoryBuffer in 
a ZMemoryBuffer that just sets RequiresNullTerminatedBuffer to true so 
that people don't accidentally pass the wrong type of buffer to the lexer.

> -Chris

Cheers,
Rafael



More information about the llvm-commits mailing list