================
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/



_______________________________________________
cfe-commits mailing list
cfe-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to