From f19e12794d2aa246a15bbd4879a8c7430e884cae Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Sat, 7 Mar 2015 00:04:49 +0000 Subject: Replace Sema's map of locally-scoped extern "C" declarations with a DeclContext of extern "C" declarations. This is simpler and vastly more efficient for modules builds (we no longer need to load *all* extern "C" declarations to determine if we have a redeclaration). No functionality change intended. llvm-svn: 231538 --- clang/lib/CodeGen/CGDecl.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'clang/lib/CodeGen') diff --git a/clang/lib/CodeGen/CGDecl.cpp b/clang/lib/CodeGen/CGDecl.cpp index fb72a9a5433..f79d1373d41 100644 --- a/clang/lib/CodeGen/CGDecl.cpp +++ b/clang/lib/CodeGen/CGDecl.cpp @@ -34,6 +34,7 @@ using namespace CodeGen; void CodeGenFunction::EmitDecl(const Decl &D) { switch (D.getKind()) { case Decl::TranslationUnit: + case Decl::ExternCContext: case Decl::Namespace: case Decl::UnresolvedUsingTypename: case Decl::ClassTemplateSpecialization: -- cgit v1.2.3