[llvm] r192861 - Add the subprogram DIEs to the context they're created with only

Eric Christopher echristo at gmail.com
Thu Oct 24 16:45:52 PDT 2013


On Thu, Oct 24, 2013 at 4:30 PM, David Blaikie <dblaikie at gmail.com> wrote:

>
> There are cases where we have a SP definition with a null declaration
>>> field.
>>>
>>>
>> Are you sure? Do you have an example?
>>
>
> Non-member functions, such as this simple CU:
>
>   void func() {
>   }
>
> produces DWARF with a subprogram list of one element, a DW_TAG_subprogram
> of 'func' with a null declaration field.
>

Right, but it'll be added to the context of the CU below anyhow. Sorry, I
was thinking "An example where the context isn't already the CU".

That said, if the namespace and gnu-public-names tests pass after Manman's
coming patches that rework this then it should be fine.

-eric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20131024/9499229a/attachment.html>


More information about the llvm-commits mailing list