summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/PCHReaderDecl.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2010-07-30 10:03:16 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2010-07-30 10:03:16 +0000
commitb24355af87a476ba4fde16ee5c5006d483dde3e4 (patch)
tree29d985000043b97e1c05c92b389656fe1b709f02 /clang/lib/Frontend/PCHReaderDecl.cpp
parentffe64c06ef31568995831aa08e144738e66836f2 (diff)
downloadbcm5719-llvm-b24355af87a476ba4fde16ee5c5006d483dde3e4.tar.gz
bcm5719-llvm-b24355af87a476ba4fde16ee5c5006d483dde3e4.zip
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. llvm-svn: 109856
Diffstat (limited to 'clang/lib/Frontend/PCHReaderDecl.cpp')
-rw-r--r--clang/lib/Frontend/PCHReaderDecl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Frontend/PCHReaderDecl.cpp b/clang/lib/Frontend/PCHReaderDecl.cpp
index 03e7e1a0938..e9428cc0b4b 100644
--- a/clang/lib/Frontend/PCHReaderDecl.cpp
+++ b/clang/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;
OpenPOWER on IntegriCloud