[llvm-commits] [PATCH] PR14471: Debug info for static data members (LLVM part)

Robinson, Paul Paul.Robinson at am.sony.com
Tue Jan 8 17:16:35 PST 2013


New and improved patch for PR14471.

- No more mock tag for static members; they use DW_TAG_member.
- No more DIStaticDataMember; they use DIDerivedType.
  This helps the scope of things somewhat, but I still have a number of
  methods specific to static members; they are just different enough.
- I had to revisit createGlobalVariableDIE(), because after staring at it,
  I couldn't remember what it was doing or why.  It turns out it was not
  completely correct, and now there's extra commentary to guide the unwary.
- I figured out that the "isVariable" case under structures in
  constructTypeDIE should be irrelevant now, so I took it out.
- The test is beefed up.

--paulr
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Static-member-llvm.diff
Type: application/octet-stream
Size: 24073 bytes
Desc: Static-member-llvm.diff
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130109/e29b5117/attachment.obj>


More information about the llvm-commits mailing list