diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2010-08-05 09:48:16 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2010-08-05 09:48:16 +0000 |
commit | 0e0363866792b309d70e9c8e92b4c239773af89c (patch) | |
tree | 3df1d201ce92c06a6812878941c859b41d9c7092 /include/clang/Frontend | |
parent | 72b90571b1783b17c3f2204cec5ca440edc38bee (diff) |
Store the pending implicit instantiations in the PCH and perform them at the end of the translation unit that
included the PCH, as God intended.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110324 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Frontend')
-rw-r--r-- | include/clang/Frontend/PCHBitCodes.h | 5 | ||||
-rw-r--r-- | include/clang/Frontend/PCHReader.h | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/include/clang/Frontend/PCHBitCodes.h b/include/clang/Frontend/PCHBitCodes.h index 37337963a1..7605670f0e 100644 --- a/include/clang/Frontend/PCHBitCodes.h +++ b/include/clang/Frontend/PCHBitCodes.h @@ -253,7 +253,10 @@ namespace clang { SEMA_DECL_REFS = 30, /// \brief Record code for weak undeclared identifiers. - WEAK_UNDECLARED_IDENTIFIERS = 31 + WEAK_UNDECLARED_IDENTIFIERS = 31, + + /// \brief Record code for pending implicit instantiations. + PENDING_IMPLICIT_INSTANTIATIONS = 32 }; /// \brief Record types used within a source manager block. diff --git a/include/clang/Frontend/PCHReader.h b/include/clang/Frontend/PCHReader.h index 76975a0e01..fc63e82287 100644 --- a/include/clang/Frontend/PCHReader.h +++ b/include/clang/Frontend/PCHReader.h @@ -397,6 +397,9 @@ private: /// \brief The set of dynamic CXXRecord declarations stored in the PCH file. llvm::SmallVector<uint64_t, 16> DynamicClasses; + /// \brief The set of pending implicit instantiations stored in the PCH file. + llvm::SmallVector<uint64_t, 64> PendingImplicitInstantiations; + /// \brief The set of Sema declaration references, stored in PCH. llvm::SmallVector<uint64_t, 4> SemaDeclRefs; |