Use SmallVectorImpl::iterator/const_iterator instead of SmallVector to avoid specifying the vector size.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185540 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Craig Topper
2013-07-03 15:07:05 +00:00
parent bf361f58df
commit 365ef0b197
11 changed files with 35 additions and 35 deletions

View File

@@ -755,7 +755,7 @@ namespace llvm {
bool addType(DIType DT);
public:
typedef SmallVector<MDNode *, 8>::const_iterator iterator;
typedef SmallVectorImpl<MDNode *>::const_iterator iterator;
iterator compile_unit_begin() const { return CUs.begin(); }
iterator compile_unit_end() const { return CUs.end(); }
iterator subprogram_begin() const { return SPs.begin(); }