Add DWARFFormValue::getAsBlockData(), getAsBlockSize() and getAsFlag().

Frédéric Riss friss at apple.com
Wed Sep 3 12:24:41 PDT 2014


Here is a new patch with AsFlag removed in favor of accepting TC_Flag in getAsUnsignedConstant() and with getAsBlock implemented as per you suggestion. I can also split that in two pieces if that helps.


> On 03 Sep 2014, at 20:56, Frédéric Riss <friss at apple.com> wrote:
> 
> 
>> On 03 Sep 2014, at 20:52, David Blaikie <dblaikie at gmail.com <mailto:dblaikie at gmail.com>> wrote:
>> 
>> What's the need for the getAsFlag function?
> 
> FC_Flag is a separate class. I just mimicked the other variants. I can however fold FC_Flag into getAsUnsignedConstant(). This would make the followup patch about symbolic constants a tiny bit simpler.
> 
>> Perhaps the getAsBlockData/getAsBlockSize could be one function, returning an Optional<ArrayRef<uint8_t*>> ? ("getAsBlock”?)
> 
> Great suggestion. I’ll do that and rebase the rest.
> 
> Fred
> 
>> 
>> On Wed, Sep 3, 2014 at 11:47 AM, Frédéric Riss <friss at apple.com <mailto:friss at apple.com>> wrote:
>> These new accessors will be used in subsequent patches.
>> 
>> OK to commit?
>> 
>> 
> 
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140903/83d4b8ba/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dwarfdump-FormValueAccessors.diff
Type: application/octet-stream
Size: 1648 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140903/83d4b8ba/attachment.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140903/83d4b8ba/attachment-0001.html>


More information about the llvm-commits mailing list