[PATCH] D14275: Make createReferenceType take size and align
Keno Fischer via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 2 22:24:27 PST 2015
I'm happy to have either representation, but I would like it to be
consistent between pointers and references. One point that speaks for not
having it in the debug info is that it makes the debug info dependent on
the size of the pointer (when fixing up the test cases I had to add quite a
number of explicit `target triple`s to fix the pointer size).
However, is it possible that different pointer types (e.g. in different
address spaces) could have different size? In that case it might be needed
in either metadata or DWARF or both.
On Tue, Nov 3, 2015 at 1:13 AM, David Blaikie <dblaikie at gmail.com> wrote:
>
>
> On Mon, Nov 2, 2015 at 10:04 PM, Keno Fischer via llvm-commits <
> llvm-commits at lists.llvm.org> wrote:
>
>> loladiro added a comment.
>>
>> Ah, interesting we skip emitting the size of a pointer in the backend.
>> Will add the same for reference types.
>>
>
> Oh, interesting...
>
> Suspicious why we add it to the metadata then... that seems strange.
> (admittedly it comes in handy for the verification you're adding - but I'm
> not sure how much we want to add to the metadata to facilitate that sort of
> thing & make the debug info less clear in its purpose by doing so)
>
>
>>
>>
>> Repository:
>> rL LLVM
>>
>> http://reviews.llvm.org/D14275
>>
>>
>>
>> _______________________________________________
>> llvm-commits mailing list
>> llvm-commits at lists.llvm.org
>> 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/20151103/2e173177/attachment.html>
More information about the llvm-commits
mailing list