diff options
author | Steve Naroff <snaroff@apple.com> | 2008-06-02 23:03:37 +0000 |
---|---|---|
committer | Steve Naroff <snaroff@apple.com> | 2008-06-02 23:03:37 +0000 |
commit | e3e9add4fd788927df6f545570e7838db59c01d7 (patch) | |
tree | e44decbff844facc3f483c1dfd4206338e4ccfdb /lib/AST/StmtSerialization.cpp | |
parent | 6195c373b86963b029a2d1d2501f899789d74ba8 (diff) |
Fix <rdar://problem/5979875> clang on xcode: error: use of undeclared identifier 'super'
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51888 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/StmtSerialization.cpp')
-rw-r--r-- | lib/AST/StmtSerialization.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/AST/StmtSerialization.cpp b/lib/AST/StmtSerialization.cpp index 25e9514db1..99a890946d 100644 --- a/lib/AST/StmtSerialization.cpp +++ b/lib/AST/StmtSerialization.cpp @@ -518,6 +518,17 @@ DeclRefExpr* DeclRefExpr::CreateImpl(Deserializer& D, ASTContext& C) { return new DeclRefExpr(decl,T,Loc); } +void ObjCSuperRefExpr::EmitImpl(Serializer& S) const { + S.Emit(Loc); + S.Emit(getType()); +} + +ObjCSuperRefExpr* ObjCSuperRefExpr::CreateImpl(Deserializer& D, ASTContext& C) { + SourceLocation Loc = SourceLocation::ReadVal(D); + QualType T = QualType::ReadVal(D); + return new ObjCSuperRefExpr(T, Loc); +} + DeclStmt* DeclStmt::CreateImpl(Deserializer& D, ASTContext& C) { ScopedDecl* decl = cast<ScopedDecl>(D.ReadOwnedPtr<Decl>(C)); SourceLocation StartLoc = SourceLocation::ReadVal(D); |