[PATCH] Fixed debug info generation for function static variables, typedef, and records

Paul Robinson Paul_Robinson at playstation.sony.com
Thu May 21 14:40:47 PDT 2015


================
Comment at: lib/CodeGen/CGDebugInfo.cpp:782
@@ -778,1 +781,3 @@
+  llvm::DIScope *TDContext = I != LexicalBlockMap.end() ? I->second
+      : getContextDescriptor(cast<Decl>(TD->getDeclContext()));
 
----------------
This could be refactored into a 'getDeclarationLexicalScope' method, as the companion to 'recordDeclarationLexicalScope'.

================
Comment at: lib/CodeGen/CGDebugInfo.cpp:2228
@@ -2216,1 +2227,3 @@
+  llvm::DIScope *RDContext = I != LexicalBlockMap.end() ? I->second
+      : getContextDescriptor(cast<Decl>(RD->getDeclContext()));
 
----------------
This would become a call to 'getDeclarationLexicalScope'.

http://reviews.llvm.org/D9760

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the cfe-commits mailing list