summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/PCHReaderDecl.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-04-27 05:41:06 +0000
committerChris Lattner <sabre@nondot.org>2009-04-27 05:41:06 +0000
commitf4262539fa3f9fd2c62bbf4919361b3c0df63d63 (patch)
tree6a1911abb0487ebdfc0ce5bcbd946456398c422b /clang/lib/Frontend/PCHReaderDecl.cpp
parent487412d4db0cc0678c17335fcb7fdae94e368296 (diff)
downloadbcm5719-llvm-f4262539fa3f9fd2c62bbf4919361b3c0df63d63.tar.gz
bcm5719-llvm-f4262539fa3f9fd2c62bbf4919361b3c0df63d63.zip
change the interface to ReadStmt to force clients to pass a cursor in to read from.
llvm-svn: 70188
Diffstat (limited to 'clang/lib/Frontend/PCHReaderDecl.cpp')
-rw-r--r--clang/lib/Frontend/PCHReaderDecl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Frontend/PCHReaderDecl.cpp b/clang/lib/Frontend/PCHReaderDecl.cpp
index 36ec7b9dbfd..74b489512d8 100644
--- a/clang/lib/Frontend/PCHReaderDecl.cpp
+++ b/clang/lib/Frontend/PCHReaderDecl.cpp
@@ -186,7 +186,7 @@ void PCHDeclReader::VisitObjCMethodDecl(ObjCMethodDecl *MD) {
if (Record[Idx++]) {
// In practice, this won't be executed (since method definitions
// don't occur in header files).
- MD->setBody(Reader.ReadStmt());
+ MD->setBody(Reader.ReadStmt(Reader.Stream));
MD->setSelfDecl(cast<ImplicitParamDecl>(Reader.GetDecl(Record[Idx++])));
MD->setCmdDecl(cast<ImplicitParamDecl>(Reader.GetDecl(Record[Idx++])));
}
@@ -384,7 +384,7 @@ void PCHDeclReader::VisitFileScopeAsmDecl(FileScopeAsmDecl *AD) {
void PCHDeclReader::VisitBlockDecl(BlockDecl *BD) {
VisitDecl(BD);
- BD->setBody(cast_or_null<CompoundStmt>(Reader.ReadStmt()));
+ BD->setBody(cast_or_null<CompoundStmt>(Reader.ReadStmt(Reader.Stream)));
unsigned NumParams = Record[Idx++];
llvm::SmallVector<ParmVarDecl *, 16> Params;
Params.reserve(NumParams);
OpenPOWER on IntegriCloud