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

Robinson, Paul Paul.Robinson at am.sony.com
Fri Jan 4 13:45:51 PST 2013



> b) Instead of inlining all the code for CollectRecordStaticVars how about outlining it into a couple of static functions?

Hmm, yeah the body of that loop is basically "if static-member do this; else if field do that;" so factoring out those bits seems reasonable.  (The lambda part, which I didn't touch, probably also could be factored out for similar reasons, but that might exceed the scope of what I'm doing with this patch.  Let me know.)


> Yes please, thanks.

It turns out to be infeasible to make these static functions, because they use private data and methods from class CGDebugInfo.  Do you want me to do the outlining as new private methods, or just leave everything inline within CollectRecordFields?  I will say that the refactoring does make things look cleaner.
--paulr


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130104/17bdd919/attachment.html>


More information about the cfe-commits mailing list