diff options
author | Craig Topper <craig.topper@gmail.com> | 2013-07-03 15:07:05 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2013-07-03 15:07:05 +0000 |
commit | 365ef0b197d7c841f8e501da64296df65be4ca23 (patch) | |
tree | 3d2f2b3be4281886ebce51840c0ac234a72679a5 /include/llvm | |
parent | bf361f58df152df70972fe1e212dc83880463f01 (diff) | |
download | external_llvm-365ef0b197d7c841f8e501da64296df65be4ca23.zip external_llvm-365ef0b197d7c841f8e501da64296df65be4ca23.tar.gz external_llvm-365ef0b197d7c841f8e501da64296df65be4ca23.tar.bz2 |
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
Diffstat (limited to 'include/llvm')
-rw-r--r-- | include/llvm/DebugInfo.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/DebugInfo.h b/include/llvm/DebugInfo.h index 947f4a6..372d367 100644 --- a/include/llvm/DebugInfo.h +++ b/include/llvm/DebugInfo.h @@ -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(); } |