[llvm-commits] don't emit debug info for all contexts

Nick Lewycky nlewycky at google.com
Wed Nov 9 16:47:11 PST 2011


This patch fixes PR11345, a case where we emit debug info for a class, just
because we define a static member inside the class. This is implemented by
changing getContextDescriptor() to use a newly refactored
getTypeOrFwdDecl() method, instead of always requiring a full definition.

Please review! In particular, this patch causes the code that emits
pointers which used to always emit a new fwd-decl of the record type, to
now use the full type if that type is already defined and emitted. I don't
think this has any ill effects, but it's difficult to prove.

Nick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20111109/500c24bf/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr11345-1.patch
Type: text/x-patch
Size: 5569 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20111109/500c24bf/attachment.bin>


More information about the llvm-commits mailing list