Revert "[AST] Put TypeLocs and NestedNameSpecifierLocs into the ParentMap."
authorBenjamin Kramer <benny.kra@googlemail.com>
Wed, 21 Oct 2015 10:07:26 +0000 (10:07 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Wed, 21 Oct 2015 10:07:26 +0000 (10:07 +0000)
commite8c51fdbd6c74cfa07bc9fae089bc4587cb2226b
tree09ddff7de42fa6f9cfa6600b0739bc2b7b648b9e
parent7dacc242d90c98f74cb14d8e841e4a040e33bb81
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/include/clang/AST/ASTContext.h
clang/include/clang/AST/ASTTypeTraits.h
clang/include/clang/ASTMatchers/ASTMatchers.h
clang/include/clang/ASTMatchers/ASTMatchersInternal.h
clang/lib/AST/ASTContext.cpp
clang/lib/ASTMatchers/ASTMatchFinder.cpp
clang/unittests/AST/ASTContextParentMapTest.cpp
clang/unittests/ASTMatchers/Dynamic/ParserTest.cpp
clang/unittests/ASTMatchers/Dynamic/RegistryTest.cpp