[llvm-commits] [llvm] r76841 - in /llvm/trunk: include/llvm/LLVMContext.h include/llvm/MDNode.h lib/AsmParser/LLParser.cpp lib/Bitcode/Reader/BitcodeReader.cpp lib/Bitcode/Writer/BitcodeWriter.cpp lib/VMCore/AsmWriter.cpp lib/VMCore/LLVMContext.c

Devang Patel devang.patel at gmail.com
Mon Jul 27 09:59:29 PDT 2009


On Thu, Jul 23, 2009 at 11:16 AM, Daniel Dunbar<daniel at zuster.org> wrote:
> On Wed, Jul 22, 2009 at 7:01 PM, Devang Patel<dpatel at apple.com> wrote:
>> Author: dpatel
>> Date: Wed Jul 22 21:00:51 2009
>> New Revision: 76841
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=76841&view=rev
>> Log:
>> MDString
>> - Rename member function size(). New name is length().
>
> Was this in response to feedback?

Yes

> size() is slightly more consistent, I think?
>
>> - Store string beginning and length. Earlier it used to store string end.
>
> Can you change this to use a StringRef instead? It should simplify the API.

sure.

>
> MDNode is also inconsistent in its use of accessors, StrBegin is
> accessed directly but length is a method. I think this problem gets
> cleaned up with the move to StringRef, however.
>
>  - Daniel
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>



-- 
-
Devang




More information about the llvm-commits mailing list