diff options
| author | Steve Naroff <snaroff@apple.com> | 2007-11-12 14:29:37 +0000 |
|---|---|---|
| committer | Steve Naroff <snaroff@apple.com> | 2007-11-12 14:29:37 +0000 |
| commit | 7779db42c94405ecbd6ee45efb293483fa6cbeff (patch) | |
| tree | 2a338080709d3cc608744e1f3d4dba3f863ccc51 /AST/StmtSerialization.cpp | |
| parent | 0330071714f1ba09e926becd666f4fc0ed62bc0b (diff) | |
Implement instance variable references.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44016 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'AST/StmtSerialization.cpp')
| -rw-r--r-- | AST/StmtSerialization.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/AST/StmtSerialization.cpp b/AST/StmtSerialization.cpp index 5ea56c2b45..a0197f9d37 100644 --- a/AST/StmtSerialization.cpp +++ b/AST/StmtSerialization.cpp @@ -337,6 +337,20 @@ DeclRefExpr* DeclRefExpr::directMaterialize(Deserializer& D) { return dr; } +void ObjCIvarRefExpr::directEmit(Serializer& S) const { + S.Emit(Loc); + S.Emit(getType()); + S.EmitPtr(getDecl()); +} + +ObjCIvarRefExpr* ObjCIvarRefExpr::directMaterialize(Deserializer& D) { + SourceLocation Loc = SourceLocation::ReadVal(D); + QualType T = QualType::ReadVal(D); + ObjCIvarRefExpr* dr = new ObjCIvarRefExpr(NULL,T,Loc); + D.ReadPtr(dr->D,false); + return dr; +} + DeclStmt* DeclStmt::directMaterialize(Deserializer& D) { ScopedDecl* decl = cast<ScopedDecl>(D.ReadOwnedPtr<Decl>()); return new DeclStmt(decl); |
