From e8c51fdbd6c74cfa07bc9fae089bc4587cb2226b Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Wed, 21 Oct 2015 10:07:26 +0000 Subject: Revert "[AST] Put TypeLocs and NestedNameSpecifierLocs into the ParentMap." Putting DynTypedNode in the ParentMap bloats its memory foot print. Before the void* key had 8 bytes, now we're at 40 bytes per key which can mean multiple gigabytes increase for large ASTs and this count doesn't even include all the added TypeLoc nodes. Revert until I come up with a better data structure. This reverts commit r250831. llvm-svn: 250889 --- clang/unittests/ASTMatchers/Dynamic/ParserTest.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'clang/unittests/ASTMatchers/Dynamic/ParserTest.cpp') diff --git a/clang/unittests/ASTMatchers/Dynamic/ParserTest.cpp b/clang/unittests/ASTMatchers/Dynamic/ParserTest.cpp index 2c94a727de1..ef66a816aac 100644 --- a/clang/unittests/ASTMatchers/Dynamic/ParserTest.cpp +++ b/clang/unittests/ASTMatchers/Dynamic/ParserTest.cpp @@ -318,8 +318,7 @@ TEST(ParserTest, CompletionNamedValues) { Comps[1].MatcherDecl); EXPECT_EQ("arent(", Comps[2].TypedText); - EXPECT_EQ("Matcher " - "hasParent(Matcher)", + EXPECT_EQ("Matcher hasParent(Matcher)", Comps[2].MatcherDecl); } -- cgit v1.2.3