summaryrefslogtreecommitdiffstats
path: root/clang/unittests/AST/ASTContextParentMapTest.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2015-10-21 10:07:26 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2015-10-21 10:07:26 +0000
commite8c51fdbd6c74cfa07bc9fae089bc4587cb2226b (patch)
tree09ddff7de42fa6f9cfa6600b0739bc2b7b648b9e /clang/unittests/AST/ASTContextParentMapTest.cpp
parent7dacc242d90c98f74cb14d8e841e4a040e33bb81 (diff)
downloadbcm5719-llvm-e8c51fdbd6c74cfa07bc9fae089bc4587cb2226b.tar.gz
bcm5719-llvm-e8c51fdbd6c74cfa07bc9fae089bc4587cb2226b.zip
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
Diffstat (limited to 'clang/unittests/AST/ASTContextParentMapTest.cpp')
-rw-r--r--clang/unittests/AST/ASTContextParentMapTest.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/clang/unittests/AST/ASTContextParentMapTest.cpp b/clang/unittests/AST/ASTContextParentMapTest.cpp
index b1d7db4164e..94e9735654c 100644
--- a/clang/unittests/AST/ASTContextParentMapTest.cpp
+++ b/clang/unittests/AST/ASTContextParentMapTest.cpp
@@ -38,19 +38,6 @@ TEST(GetParents, ReturnsParentForStmt) {
ifStmt(hasParent(compoundStmt()))));
}
-TEST(GetParents, ReturnsParentForTypeLoc) {
- MatchVerifier<TypeLoc> Verifier;
- EXPECT_TRUE(
- Verifier.match("namespace a { class b {}; } void f(a::b) {}",
- typeLoc(hasParent(typeLoc(hasParent(functionDecl()))))));
-}
-
-TEST(GetParents, ReturnsParentForNestedNameSpecifierLoc) {
- MatchVerifier<NestedNameSpecifierLoc> Verifier;
- EXPECT_TRUE(Verifier.match("namespace a { class b {}; } void f(a::b) {}",
- nestedNameSpecifierLoc(hasParent(typeLoc()))));
-}
-
TEST(GetParents, ReturnsParentInsideTemplateInstantiations) {
MatchVerifier<Decl> DeclVerifier;
EXPECT_TRUE(DeclVerifier.match(
OpenPOWER on IntegriCloud