forked from OSchip/llvm-project
Use SmallVectorImpl& instead of SmallVector to avoid repeating small vector size.
llvm-svn: 186284
This commit is contained in:
parent
fee796d734
commit
fa159c144a
|
@ -1041,7 +1041,7 @@ llvm::Value *CGObjCGNU::EmitNSAutoreleasePoolClassRef(CodeGenFunction &CGF) {
|
|||
llvm::Value *CGObjCGNU::GetSelector(CodeGenFunction &CGF, Selector Sel,
|
||||
const std::string &TypeEncoding, bool lval) {
|
||||
|
||||
SmallVector<TypedSelector, 2> &Types = SelectorTable[Sel];
|
||||
SmallVectorImpl<TypedSelector> &Types = SelectorTable[Sel];
|
||||
llvm::GlobalAlias *SelValue = 0;
|
||||
|
||||
|
||||
|
|
|
@ -1216,13 +1216,13 @@ namespace {
|
|||
// of the excluded constructs are used.
|
||||
class DeclExtractor : public EvaluatedExprVisitor<DeclExtractor> {
|
||||
llvm::SmallPtrSet<VarDecl*, 8> &Decls;
|
||||
SmallVector<SourceRange, 10> &Ranges;
|
||||
SmallVectorImpl<SourceRange> &Ranges;
|
||||
bool Simple;
|
||||
public:
|
||||
typedef EvaluatedExprVisitor<DeclExtractor> Inherited;
|
||||
|
||||
DeclExtractor(Sema &S, llvm::SmallPtrSet<VarDecl*, 8> &Decls,
|
||||
SmallVector<SourceRange, 10> &Ranges) :
|
||||
SmallVectorImpl<SourceRange> &Ranges) :
|
||||
Inherited(S.Context),
|
||||
Decls(Decls),
|
||||
Ranges(Ranges),
|
||||
|
|
Loading…
Reference in New Issue