[cfe-commits] r102640 - /cfe/trunk/tools/CIndex/CIndexUSRs.cpp

Ted Kremenek kremenek at apple.com
Thu Apr 29 10:43:26 PDT 2010


Author: kremenek
Date: Thu Apr 29 12:43:26 2010
New Revision: 102640

URL: http://llvm.org/viewvc/llvm-project?rev=102640&view=rev
Log:
Remove USRGenerator::VisitBlockDecl().  We don't need to generate USRs for blocks, since
they have no linkage and by definition are anonymous.

Modified:
    cfe/trunk/tools/CIndex/CIndexUSRs.cpp

Modified: cfe/trunk/tools/CIndex/CIndexUSRs.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/CIndex/CIndexUSRs.cpp?rev=102640&r1=102639&r2=102640&view=diff
==============================================================================
--- cfe/trunk/tools/CIndex/CIndexUSRs.cpp (original)
+++ cfe/trunk/tools/CIndex/CIndexUSRs.cpp Thu Apr 29 12:43:26 2010
@@ -38,7 +38,6 @@
   bool ignoreResults() const { return IgnoreResults; }
 
   // Visitation methods from generating USRs from AST elements.
-  void VisitBlockDecl(BlockDecl *D);
   void VisitDeclContext(DeclContext *D);
   void VisitFieldDecl(FieldDecl *D);
   void VisitFunctionDecl(FunctionDecl *D);
@@ -115,12 +114,6 @@
 // Generating USRs from ASTS.
 //===----------------------------------------------------------------------===//
 
-void USRGenerator::VisitBlockDecl(BlockDecl *D) {
-  VisitDeclContext(D->getDeclContext());
-  // FIXME: Better support for anonymous blocks.
-  Out << "@B at anon";
-}
-
 void USRGenerator::VisitDeclContext(DeclContext *DC) {
   if (NamedDecl *D = dyn_cast<NamedDecl>(DC))
     Visit(D);





More information about the cfe-commits mailing list