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 | 7f76d11dcc9196e1fc9d1308da9ed2330a6b06c2 (patch) | |
| tree | 818086f97c698c96acd6f5713d8bbedd34b3b19c /clang/include | |
| parent | ee1afa30827e0805394cecc092beb083d1169283 (diff) | |
| download | bcm5719-llvm-7f76d11dcc9196e1fc9d1308da9ed2330a6b06c2.tar.gz bcm5719-llvm-7f76d11dcc9196e1fc9d1308da9ed2330a6b06c2.zip | |
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.
llvm-svn: 110324
Diffstat (limited to 'clang/include')
| -rw-r--r-- | clang/include/clang/Frontend/PCHBitCodes.h | 5 | ||||
| -rw-r--r-- | clang/include/clang/Frontend/PCHReader.h | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/clang/include/clang/Frontend/PCHBitCodes.h b/clang/include/clang/Frontend/PCHBitCodes.h index 37337963a18..7605670f0ea 100644 --- a/clang/include/clang/Frontend/PCHBitCodes.h +++ b/clang/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/clang/include/clang/Frontend/PCHReader.h b/clang/include/clang/Frontend/PCHReader.h index 76975a0e01c..fc63e82287b 100644 --- a/clang/include/clang/Frontend/PCHReader.h +++ b/clang/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; |

