]> granicus.if.org Git - clang/commit
[modules] When creating a declaration, cache its owning module immediately
authorRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 12 May 2017 23:27:00 +0000 (23:27 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 12 May 2017 23:27:00 +0000 (23:27 +0000)
commitc9a4074665759d11149bd1f7a59def506b9147c6
tree0e39809a71235f5d5a041b025d482d1413e78a5f
parent2dac30a6d7668a1de94f2509b6e533e16b3117a7
[modules] When creating a declaration, cache its owning module immediately
rather than waiting until it's queried.

Currently this is only applied to local submodule visibility mode, as we don't
yet allocate storage for the owning module in non-local-visibility modules
compilations.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@302965 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/Decl.h
include/clang/AST/DeclBase.h
include/clang/Sema/Sema.h
lib/AST/ASTDumper.cpp
lib/AST/Decl.cpp
lib/AST/DeclBase.cpp
lib/Sema/Sema.cpp
lib/Sema/SemaDecl.cpp
lib/Sema/SemaLookup.cpp