diff options
author | Axel Naumann <Axel.Naumann@cern.ch> | 2012-10-02 09:09:43 +0000 |
---|---|---|
committer | Axel Naumann <Axel.Naumann@cern.ch> | 2012-10-02 09:09:43 +0000 |
commit | 39d26c3e499470cd80a3e6f26f11ac681cd9712c (patch) | |
tree | 29e424007f5364bcd619aa1ecc53eaf0c58e35d7 /include | |
parent | b7bafa94bc583af9b825b5049aed50359fdb844b (diff) |
Merge pending instantiations instead of overwriting existing ones.
Check whether a pending instantiation needs to be instantiated (or whether an instantiation already exists).
Verify the size of the PendingInstantiations record (was only checking size of existing PendingInstantiations).
Migrate Obj-C++ part of redecl-merge into separate test, now that this is growing.
templates.mm: test that CodeGen has seen exactly one definition of template instantiations.
redecl-merge.m: use "@" specifier for expected-diagnostics.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164993 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/clang/Serialization/ASTReader.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/clang/Serialization/ASTReader.h b/include/clang/Serialization/ASTReader.h index 51db35e4d9..e87c93fbec 100644 --- a/include/clang/Serialization/ASTReader.h +++ b/include/clang/Serialization/ASTReader.h @@ -687,7 +687,7 @@ private: /// Objective-C protocols. std::deque<Decl *> InterestingDecls; - /// \brief The set of redeclarable declaraations that have been deserialized + /// \brief The set of redeclarable declarations that have been deserialized /// since the last time the declaration chains were linked. llvm::SmallPtrSet<Decl *, 16> RedeclsDeserialized; @@ -854,6 +854,10 @@ private: void finishPendingActions(); + /// \brief Whether D needs to be instantiated, i.e. whether an instantiation + /// for D does not exist yet. + bool needPendingInstantiation(ValueDecl* D) const; + /// \brief Produce an error diagnostic and return true. /// /// This routine should only be used for fatal errors that have to |