diff options
| author | Fariborz Jahanian <fjahanian@apple.com> | 2009-06-20 00:02:26 +0000 |
|---|---|---|
| committer | Fariborz Jahanian <fjahanian@apple.com> | 2009-06-20 00:02:26 +0000 |
| commit | e8918d52d10444b1d859400125b8ef69450a2c87 (patch) | |
| tree | 2e7c42f38d08595fe5189fd3e6eeab68f044a656 | |
| parent | 8d284c768316cf8209de55e2e3ee65d164638ce8 (diff) | |
| download | bcm5719-llvm-e8918d52d10444b1d859400125b8ef69450a2c87.tar.gz bcm5719-llvm-e8918d52d10444b1d859400125b8ef69450a2c87.zip | |
Added writing and reading of the ConstQualAdded flag of
BlockDeclRefExpr to PCH.
llvm-svn: 73800
| -rw-r--r-- | clang/lib/Frontend/PCHReaderStmt.cpp | 1 | ||||
| -rw-r--r-- | clang/lib/Frontend/PCHWriterStmt.cpp | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Frontend/PCHReaderStmt.cpp b/clang/lib/Frontend/PCHReaderStmt.cpp index e6871e3a0eb..d0963880616 100644 --- a/clang/lib/Frontend/PCHReaderStmt.cpp +++ b/clang/lib/Frontend/PCHReaderStmt.cpp @@ -667,6 +667,7 @@ unsigned PCHStmtReader::VisitBlockDeclRefExpr(BlockDeclRefExpr *E) { E->setDecl(cast<ValueDecl>(Reader.GetDecl(Record[Idx++]))); E->setLocation(SourceLocation::getFromRawEncoding(Record[Idx++])); E->setByRef(Record[Idx++]); + E->setConstQualAdded(Record[Idx++]); return 0; } diff --git a/clang/lib/Frontend/PCHWriterStmt.cpp b/clang/lib/Frontend/PCHWriterStmt.cpp index 73dea1061c2..c63c03c8823 100644 --- a/clang/lib/Frontend/PCHWriterStmt.cpp +++ b/clang/lib/Frontend/PCHWriterStmt.cpp @@ -602,6 +602,7 @@ void PCHStmtWriter::VisitBlockDeclRefExpr(BlockDeclRefExpr *E) { 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; } |

