diff options
author | Chris Lattner <sabre@nondot.org> | 2009-02-18 22:14:55 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-02-18 22:14:55 +0000 |
commit | 1e4db7c468c002c58f07e059ff7925384f053e85 (patch) | |
tree | fca6b4e910c63a0b6fef1fdeda263de687639ee5 /lib/AST/StmtSerialization.cpp | |
parent | b2b14d772aea2c5b96df22a120cfcd7f8039697a (diff) |
rip out __builtin_overload
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64961 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/StmtSerialization.cpp')
-rw-r--r-- | lib/AST/StmtSerialization.cpp | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/lib/AST/StmtSerialization.cpp b/lib/AST/StmtSerialization.cpp index e1d85aa01c..a6cf01fe2b 100644 --- a/lib/AST/StmtSerialization.cpp +++ b/lib/AST/StmtSerialization.cpp @@ -917,27 +917,6 @@ GNUNullExpr *GNUNullExpr::CreateImpl(llvm::Deserializer &D, ASTContext &C) { return new GNUNullExpr(T, TL); } -void OverloadExpr::EmitImpl(llvm::Serializer& S) const { - S.Emit(getType()); - S.Emit(BuiltinLoc); - S.Emit(RParenLoc); - S.EmitInt(FnIndex); - S.EmitInt(NumExprs); - S.BatchEmitOwnedPtrs(NumExprs, &SubExprs[0]); -} - -OverloadExpr* OverloadExpr::CreateImpl(llvm::Deserializer& D, ASTContext& C) { - QualType T = QualType::ReadVal(D); - SourceLocation BL = SourceLocation::ReadVal(D); - SourceLocation RP = SourceLocation::ReadVal(D); - unsigned FnIndex = D.ReadInt(); - unsigned NumExprs = D.ReadInt(); - // FIXME: Avoid extra allocation. - llvm::SmallVector<Expr*, 4> Exprs(NumExprs); - D.BatchReadOwnedPtrs(NumExprs, Exprs.begin(), C); - return new OverloadExpr(C, Exprs.begin(), NumExprs, FnIndex, T, BL, RP); -} - void VAArgExpr::EmitImpl(llvm::Serializer& S) const { S.Emit(getType()); S.Emit(BuiltinLoc); |