[LLVMdev] First-class debug info IR: MDLocation
Adrian Prantl
aprantl at apple.com
Mon Oct 27 11:20:47 PDT 2014
> On Oct 27, 2014, at 11:18 AM, Duncan P. N. Exon Smith <dexonsmith at apple.com> wrote:
>
>
>> On 2014-Oct-27, at 09:33, David Blaikie <dblaikie at gmail.com> wrote:
>>
>>>> Would it be possible to omit the names of unreferenced nested metadata? (if you have a bunch of member functions in a class, but don't need to refer to them elsewhere (eg: those member functions aren't defined in this translation unit)) - that'd help readability/writeability, but probably wouldn't impact FileCheck.
>>>
>>> Certainly possible, but is it generally desirable?
>>
>> I would imagine so - is there any reason the names/numbers would be preferable?
>
> I don't know :).
>
> @Adrian?
There are certainly precedents in LLVM assembly language for specifying child nodes inline. For instance, you can write
call @llvm.dbg.value(i32 %var, metadata !{}, metadata !{i32 ..., ...})
I think that would be reasonable.
-- adrian
>
>>> I guess we'll sort that out when I get there.
>>
>> Sure enough.
More information about the llvm-dev
mailing list