summaryrefslogtreecommitdiffstats
path: root/clang/tools/libclang
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2015-03-07 00:04:49 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2015-03-07 00:04:49 +0000
commitf19e12794d2aa246a15bbd4879a8c7430e884cae (patch)
tree5895ced0aec011e2be90c5f9f5505a36ee9f8eca /clang/tools/libclang
parent910db5c5203fcb594b8b72c79f998aeacb7a95d4 (diff)
downloadbcm5719-llvm-f19e12794d2aa246a15bbd4879a8c7430e884cae.tar.gz
bcm5719-llvm-f19e12794d2aa246a15bbd4879a8c7430e884cae.zip
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
Diffstat (limited to 'clang/tools/libclang')
-rw-r--r--clang/tools/libclang/CIndex.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/tools/libclang/CIndex.cpp b/clang/tools/libclang/CIndex.cpp
index 9729531c0f8..d9f3f42e324 100644
--- a/clang/tools/libclang/CIndex.cpp
+++ b/clang/tools/libclang/CIndex.cpp
@@ -4951,6 +4951,7 @@ CXCursor clang_getCursorDefinition(CXCursor C) {
// nonetheless harmless.
case Decl::Empty:
case Decl::TranslationUnit:
+ case Decl::ExternCContext:
break;
// Declaration kinds for which the definition is not resolvable.
OpenPOWER on IntegriCloud