]> granicus.if.org Git - clang/commit
When we load a function or method body from an AST file, we check
authorDouglas Gregor <dgregor@apple.com>
Tue, 9 Oct 2012 17:21:28 +0000 (17:21 +0000)
committerDouglas Gregor <dgregor@apple.com>
Tue, 9 Oct 2012 17:21:28 +0000 (17:21 +0000)
commit5456b0fe40714a78cd0ba7c1a5b7dc34eda385af
tree28de7800e7cf341389b8b25d5f0b055a3001c7ac
parentf288d223a44fb2fa0de69b225dcdbc5f7669defd
When we load a function or method body from an AST file, we check
whether that function/method already has a body (loaded from some
other AST file), as introduced in r165137. Delay this check until
after the redeclaration chains have been wired up.

While I'm here, make the loading of method bodies lazy.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@165513 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/DeclObjC.h
include/clang/Serialization/ASTReader.h
lib/AST/DeclObjC.cpp
lib/Serialization/ASTReader.cpp
lib/Serialization/ASTReaderDecl.cpp
test/Modules/Inputs/redecl-merge-left.h
test/Modules/Inputs/redecl-merge-right.h
test/Modules/Inputs/redecl-merge-top.h