From 4dd9b43c8d42f79fb5b7f11e2f331016cdddb929 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Sun, 17 Aug 2014 23:49:53 +0000 Subject: Repace SmallPtrSet with SmallPtrSetImpl in function arguments to avoid needing to mention the size. llvm-svn: 215869 --- clang/lib/Frontend/Rewrite/RewriteModernObjC.cpp | 4 ++-- clang/lib/Frontend/Rewrite/RewriteObjC.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'clang/lib/Frontend') diff --git a/clang/lib/Frontend/Rewrite/RewriteModernObjC.cpp b/clang/lib/Frontend/Rewrite/RewriteModernObjC.cpp index c97fa979f60..4fe8f74cd14 100644 --- a/clang/lib/Frontend/Rewrite/RewriteModernObjC.cpp +++ b/clang/lib/Frontend/Rewrite/RewriteModernObjC.cpp @@ -508,7 +508,7 @@ namespace { void GetBlockDeclRefExprs(Stmt *S); void GetInnerBlockDeclRefExprs(Stmt *S, SmallVectorImpl &InnerBlockDeclRefs, - llvm::SmallPtrSet &InnerContexts); + llvm::SmallPtrSetImpl &InnerContexts); // We avoid calling Type::isBlockPointerType(), since it operates on the // canonical type. We only care if the top-level type is a closure pointer. @@ -4595,7 +4595,7 @@ void RewriteModernObjC::GetBlockDeclRefExprs(Stmt *S) { void RewriteModernObjC::GetInnerBlockDeclRefExprs(Stmt *S, SmallVectorImpl &InnerBlockDeclRefs, - llvm::SmallPtrSet &InnerContexts) { + llvm::SmallPtrSetImpl &InnerContexts) { for (Stmt::child_range CI = S->children(); CI; ++CI) if (*CI) { if (BlockExpr *CBE = dyn_cast(*CI)) { diff --git a/clang/lib/Frontend/Rewrite/RewriteObjC.cpp b/clang/lib/Frontend/Rewrite/RewriteObjC.cpp index 8d48d9e7b69..e96ff78c604 100644 --- a/clang/lib/Frontend/Rewrite/RewriteObjC.cpp +++ b/clang/lib/Frontend/Rewrite/RewriteObjC.cpp @@ -413,7 +413,7 @@ namespace { void GetBlockDeclRefExprs(Stmt *S); void GetInnerBlockDeclRefExprs(Stmt *S, SmallVectorImpl &InnerBlockDeclRefs, - llvm::SmallPtrSet &InnerContexts); + llvm::SmallPtrSetImpl &InnerContexts); // We avoid calling Type::isBlockPointerType(), since it operates on the // canonical type. We only care if the top-level type is a closure pointer. @@ -3701,7 +3701,7 @@ void RewriteObjC::GetBlockDeclRefExprs(Stmt *S) { void RewriteObjC::GetInnerBlockDeclRefExprs(Stmt *S, SmallVectorImpl &InnerBlockDeclRefs, - llvm::SmallPtrSet &InnerContexts) { + llvm::SmallPtrSetImpl &InnerContexts) { for (Stmt::child_range CI = S->children(); CI; ++CI) if (*CI) { if (BlockExpr *CBE = dyn_cast(*CI)) { -- cgit v1.2.3