summaryrefslogtreecommitdiffstats
path: root/clang/tools/c-index-test/c-index-test.c
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-01-20 23:57:43 +0000
committerDouglas Gregor <dgregor@apple.com>2010-01-20 23:57:43 +0000
commitfed36b1aa13452a7e416a0faa5a36d681fa08059 (patch)
tree7360703cf08d60c7e91201b53d7706477cd352ca /clang/tools/c-index-test/c-index-test.c
parent3f4a77e08283a2d1c6149dcf37286b1bca10f39c (diff)
downloadbcm5719-llvm-fed36b1aa13452a7e416a0faa5a36d681fa08059.tar.gz
bcm5719-llvm-fed36b1aa13452a7e416a0faa5a36d681fa08059.zip
Stash a CXXUnit pointer into each cursor. This allows us to simplify
the interface to clang_visitChildren() by eliminating the CXTranslationUnit pointer. llvm-svn: 94051
Diffstat (limited to 'clang/tools/c-index-test/c-index-test.c')
-rw-r--r--clang/tools/c-index-test/c-index-test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/tools/c-index-test/c-index-test.c b/clang/tools/c-index-test/c-index-test.c
index 185c0597379..473773e0801 100644
--- a/clang/tools/c-index-test/c-index-test.c
+++ b/clang/tools/c-index-test/c-index-test.c
@@ -230,7 +230,7 @@ static int perform_test_load(CXIndex Idx, CXTranslationUnit TU,
Data.TU = TU;
Data.Filter = ck;
- clang_visitChildren(TU, clang_getTranslationUnitCursor(TU), Visitor, &Data);
+ clang_visitChildren(clang_getTranslationUnitCursor(TU), Visitor, &Data);
clang_disposeTranslationUnit(TU);
return 0;
}
OpenPOWER on IntegriCloud