summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo/DWARFDebugArangeSet.cpp
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2014-03-13 07:52:54 +0000
committerAlexey Samsonov <samsonov@google.com>2014-03-13 07:52:54 +0000
commit1eabf98b3277cc44e0263c05155791cfe6d2c221 (patch)
treed97ef3fcb847e9b97c5384e116b1a4af20eecdf3 /llvm/lib/DebugInfo/DWARFDebugArangeSet.cpp
parentaae4dc21ea12d91a2687923755a6eb80dba5f2da (diff)
downloadbcm5719-llvm-1eabf98b3277cc44e0263c05155791cfe6d2c221.tar.gz
bcm5719-llvm-1eabf98b3277cc44e0263c05155791cfe6d2c221.zip
[C++11] Convert DWARF parser to range-based for loops
llvm-svn: 203766
Diffstat (limited to 'llvm/lib/DebugInfo/DWARFDebugArangeSet.cpp')
-rw-r--r--llvm/lib/DebugInfo/DWARFDebugArangeSet.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/DebugInfo/DWARFDebugArangeSet.cpp b/llvm/lib/DebugInfo/DWARFDebugArangeSet.cpp
index 229376e4a1c..8459cb13789 100644
--- a/llvm/lib/DebugInfo/DWARFDebugArangeSet.cpp
+++ b/llvm/lib/DebugInfo/DWARFDebugArangeSet.cpp
@@ -94,9 +94,9 @@ void DWARFDebugArangeSet::dump(raw_ostream &OS) const {
HeaderData.CuOffset, HeaderData.AddrSize, HeaderData.SegSize);
const uint32_t hex_width = HeaderData.AddrSize * 2;
- for (DescriptorConstIter pos = ArangeDescriptors.begin(),
- end = ArangeDescriptors.end(); pos != end; ++pos)
- OS << format("[0x%*.*" PRIx64 " -", hex_width, hex_width, pos->Address)
+ for (const auto &Desc : ArangeDescriptors) {
+ OS << format("[0x%*.*" PRIx64 " -", hex_width, hex_width, Desc.Address)
<< format(" 0x%*.*" PRIx64 ")\n",
- hex_width, hex_width, pos->getEndAddress());
+ hex_width, hex_width, Desc.getEndAddress());
+ }
}
OpenPOWER on IntegriCloud