diff options
author | Alexey Samsonov <samsonov@google.com> | 2014-03-13 07:52:54 +0000 |
---|---|---|
committer | Alexey Samsonov <samsonov@google.com> | 2014-03-13 07:52:54 +0000 |
commit | 72df68895059f778ae2f6b1264fc98415133b66e (patch) | |
tree | 108f0ecaea9e236ccc6de295a016abf039234b6a /lib/DebugInfo/DWARFDebugLine.cpp | |
parent | 7c801675f8a0d079281fead832f0eb642ad3a6c5 (diff) | |
download | llvm-72df68895059f778ae2f6b1264fc98415133b66e.tar.gz llvm-72df68895059f778ae2f6b1264fc98415133b66e.tar.bz2 llvm-72df68895059f778ae2f6b1264fc98415133b66e.tar.xz |
[C++11] Convert DWARF parser to range-based for loops
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203766 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/DebugInfo/DWARFDebugLine.cpp')
-rw-r--r-- | lib/DebugInfo/DWARFDebugLine.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/DebugInfo/DWARFDebugLine.cpp b/lib/DebugInfo/DWARFDebugLine.cpp index 83490b1d3f..43d976480c 100644 --- a/lib/DebugInfo/DWARFDebugLine.cpp +++ b/lib/DebugInfo/DWARFDebugLine.cpp @@ -90,9 +90,9 @@ void DWARFDebugLine::LineTable::dump(raw_ostream &OS) const { OS << "Address Line Column File ISA Discriminator Flags\n" << "------------------ ------ ------ ------ --- ------------- " "-------------\n"; - for (std::vector<Row>::const_iterator pos = Rows.begin(), - end = Rows.end(); pos != end; ++pos) - pos->dump(OS); + for (const Row &R : Rows) { + R.dump(OS); + } } } |