diff options
author | Douglas Gregor <dgregor@apple.com> | 2011-09-10 00:09:20 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2011-09-10 00:09:20 +0000 |
commit | 08e0bc16b3312c27e87d33be7dcf3d4fe5bdd2e2 (patch) | |
tree | 062040f563583f0cc41fe81fc95b3c3c6d643207 /lib/Serialization/ASTReaderDecl.cpp | |
parent | a1364be341550d71dff27dd8de0c6872ba6c707e (diff) |
Kill of the Decl::PCHLevel field entirely. We now only need to know
whether a Decl was deserialized from an AST file (any AST file).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@139438 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Serialization/ASTReaderDecl.cpp')
-rw-r--r-- | lib/Serialization/ASTReaderDecl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Serialization/ASTReaderDecl.cpp b/lib/Serialization/ASTReaderDecl.cpp index c584181a4c..594dc93325 100644 --- a/lib/Serialization/ASTReaderDecl.cpp +++ b/lib/Serialization/ASTReaderDecl.cpp @@ -247,7 +247,7 @@ void ASTDeclReader::VisitDecl(Decl *D) { D->setUsed(Record[Idx++]); D->setReferenced(Record[Idx++]); D->setAccess((AccessSpecifier)Record[Idx++]); - D->setPCHLevel(Record[Idx++] + (F.Kind <= MK_PCH)); + D->FromASTFile = true; D->ModulePrivate = Record[Idx++]; } |