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.<div>

<br></div><div>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.</div>

<div><br></div><div>Nick</div><div><br></div>