]> granicus.if.org Git - clang/commit
Refactor the way PCHReader tracks whether we are in recursive loading.
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Fri, 30 Jul 2010 10:03:16 +0000 (10:03 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Fri, 30 Jul 2010 10:03:16 +0000 (10:03 +0000)
commit29ee3a273f58e16df7f2c524ab62a869e44fc9b1
tree9113a442ca504710327186177decaccd36568d13
parent207014eb2b372aa33721e86d90a8a586ba8dc8ae
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
include/clang/AST/ExternalASTSource.h
include/clang/Frontend/PCHReader.h
lib/Frontend/PCHReader.cpp
lib/Frontend/PCHReaderDecl.cpp