summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2010-04-29 17:43:26 +0000
committerTed Kremenek <kremenek@apple.com>2010-04-29 17:43:26 +0000
commit9825536eea859cd961adae279df3436df408ed49 (patch)
treeeb12bd5eb464268c119d920b71617b8c4762ab9c /clang
parent772810137a41364e15bbbf3afa8a8459b5f1d377 (diff)
downloadbcm5719-llvm-9825536eea859cd961adae279df3436df408ed49.tar.gz
bcm5719-llvm-9825536eea859cd961adae279df3436df408ed49.zip
Remove USRGenerator::VisitBlockDecl(). We don't need to generate USRs for blocks, since
they have no linkage and by definition are anonymous. llvm-svn: 102640
Diffstat (limited to 'clang')
-rw-r--r--clang/tools/CIndex/CIndexUSRs.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/clang/tools/CIndex/CIndexUSRs.cpp b/clang/tools/CIndex/CIndexUSRs.cpp
index 58870b930b1..0f70a0a821c 100644
--- a/clang/tools/CIndex/CIndexUSRs.cpp
+++ b/clang/tools/CIndex/CIndexUSRs.cpp
@@ -38,7 +38,6 @@ public:
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 @@ public:
// Generating USRs from ASTS.
//===----------------------------------------------------------------------===//
-void USRGenerator::VisitBlockDecl(BlockDecl *D) {
- VisitDeclContext(D->getDeclContext());
- // FIXME: Better support for anonymous blocks.
- Out << "@B@anon";
-}
-
void USRGenerator::VisitDeclContext(DeclContext *DC) {
if (NamedDecl *D = dyn_cast<NamedDecl>(DC))
Visit(D);
OpenPOWER on IntegriCloud