aboutsummaryrefslogtreecommitdiff
path: root/tools/libclang/IndexBody.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2012-05-02 00:30:48 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2012-05-02 00:30:48 +0000
commitc8c222830a1d8df8ed05bedfcac868fe6838fba8 (patch)
tree42282a8273a4dbc2acc967cd1a5b1f814a1b6b5f /tools/libclang/IndexBody.cpp
parente7958da55ec0ec66e56b6beed6c6ce24dbdc4075 (diff)
Unrevert r155951, reverted in r155962, with two changes:
* Work around build failures due to gcc 4.2 bugs. * Remove BodyIndexer::TraverseCXXOperatorCallExpr, which was not being called prior to this change, and whose presence disables a RecursiveASTVisitor stack space optimization after this change. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@155969 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/libclang/IndexBody.cpp')
-rw-r--r--tools/libclang/IndexBody.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/tools/libclang/IndexBody.cpp b/tools/libclang/IndexBody.cpp
index 239dde21bd..e975a6d1be 100644
--- a/tools/libclang/IndexBody.cpp
+++ b/tools/libclang/IndexBody.cpp
@@ -117,12 +117,6 @@ public:
return true;
}
- bool TraverseCXXOperatorCallExpr(CXXOperatorCallExpr *E) {
- if (E->getOperatorLoc().isInvalid())
- return true; // implicit.
- return base::TraverseCXXOperatorCallExpr(E);
- }
-
bool VisitDeclStmt(DeclStmt *S) {
if (IndexCtx.shouldIndexFunctionLocalSymbols())
IndexCtx.indexDeclGroupRef(S->getDeclGroup());