From ec7f7732f1475c706765973f5ef9348c2e453aaa Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 20 Nov 2008 05:51:55 +0000 Subject: remove the type_info identifier cache. Compared to the cost of doing the lookup_decl, the hash lookup is cheap. Also, typeid doesn't happen enough in real world code to worry about it. I'd like to eventually get rid of KnownFunctionIDs from Sema also, but today is not that day. llvm-svn: 59711 --- clang/lib/Sema/Sema.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'clang/lib/Sema/Sema.cpp') diff --git a/clang/lib/Sema/Sema.cpp b/clang/lib/Sema/Sema.cpp index e1eb86c98fa..c9e4cd98338 100644 --- a/clang/lib/Sema/Sema.cpp +++ b/clang/lib/Sema/Sema.cpp @@ -103,9 +103,7 @@ Sema::Sema(Preprocessor &pp, ASTContext &ctxt, ASTConsumer &consumer) KnownFunctionIDs[id_vsnprintf_chk] = &IT.get("__builtin___vsnprintf_chk"); KnownFunctionIDs[id_vprintf] = &IT.get("vprintf"); - Ident_TypeInfo = 0; StdNamespace = 0; - TUScope = 0; if (getLangOptions().CPlusPlus) FieldCollector.reset(new CXXFieldCollector()); -- cgit v1.2.3