[cfe-commits] r73800 - in /cfe/trunk/lib/Frontend: PCHReaderStmt.cpp PCHWriterStmt.cpp
Fariborz Jahanian
fjahanian at apple.com
Fri Jun 19 17:02:27 PDT 2009
Author: fjahanian
Date: Fri Jun 19 19:02:26 2009
New Revision: 73800
URL: http://llvm.org/viewvc/llvm-project?rev=73800&view=rev
Log:
Added writing and reading of the ConstQualAdded flag of
BlockDeclRefExpr to PCH.
Modified:
cfe/trunk/lib/Frontend/PCHReaderStmt.cpp
cfe/trunk/lib/Frontend/PCHWriterStmt.cpp
Modified: cfe/trunk/lib/Frontend/PCHReaderStmt.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/PCHReaderStmt.cpp?rev=73800&r1=73799&r2=73800&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/PCHReaderStmt.cpp (original)
+++ cfe/trunk/lib/Frontend/PCHReaderStmt.cpp Fri Jun 19 19:02:26 2009
@@ -667,6 +667,7 @@
E->setDecl(cast<ValueDecl>(Reader.GetDecl(Record[Idx++])));
E->setLocation(SourceLocation::getFromRawEncoding(Record[Idx++]));
E->setByRef(Record[Idx++]);
+ E->setConstQualAdded(Record[Idx++]);
return 0;
}
Modified: cfe/trunk/lib/Frontend/PCHWriterStmt.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/PCHWriterStmt.cpp?rev=73800&r1=73799&r2=73800&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/PCHWriterStmt.cpp (original)
+++ cfe/trunk/lib/Frontend/PCHWriterStmt.cpp Fri Jun 19 19:02:26 2009
@@ -602,6 +602,7 @@
Writer.AddDeclRef(E->getDecl(), Record);
Writer.AddSourceLocation(E->getLocation(), Record);
Record.push_back(E->isByRef());
+ Record.push_back(E->isConstQualAdded());
Code = pch::EXPR_BLOCK_DECL_REF;
}
More information about the cfe-commits
mailing list