diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2010-07-30 10:03:16 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2010-07-30 10:03:16 +0000 |
commit | 29ee3a273f58e16df7f2c524ab62a869e44fc9b1 (patch) | |
tree | 9113a442ca504710327186177decaccd36568d13 /lib/Frontend/PCHReaderDecl.cpp | |
parent | 207014eb2b372aa33721e86d90a8a586ba8dc8ae (diff) |
Refactor the way PCHReader tracks whether we are in recursive loading.
-Replace CurrentlyLoadingTypeOrDecl with a counting scheme (NumCurrentElementsDeserializing)
-Provide outside access to the mechanism by adding methods StartedDeserializing/FinishedDeserializing
to ExternalASTSource.
These are preparation for the next commit.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@109856 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/PCHReaderDecl.cpp')
-rw-r--r-- | lib/Frontend/PCHReaderDecl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Frontend/PCHReaderDecl.cpp b/lib/Frontend/PCHReaderDecl.cpp index 03e7e1a093..e9428cc0b4 100644 --- a/lib/Frontend/PCHReaderDecl.cpp +++ b/lib/Frontend/PCHReaderDecl.cpp @@ -1314,7 +1314,7 @@ Decl *PCHReader::ReadDeclRecord(unsigned Index) { ReadingKindTracker ReadingKind(Read_Decl, *this); // Note that we are loading a declaration record. - LoadingTypeOrDecl Loading(*this); + Deserializing ADecl(this); DeclsCursor.JumpToBit(Loc.second); RecordData Record; |