[llvm] r181248 - Hoist boundary condition out of loop header.
Eric Christopher
echristo at gmail.com
Mon May 6 14:19:45 PDT 2013
Author: echristo
Date: Mon May 6 16:19:44 2013
New Revision: 181248
URL: http://llvm.org/viewvc/llvm-project?rev=181248&view=rev
Log:
Hoist boundary condition out of loop header.
Modified:
llvm/trunk/lib/DebugInfo/DWARFContext.cpp
Modified: llvm/trunk/lib/DebugInfo/DWARFContext.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/DebugInfo/DWARFContext.cpp?rev=181248&r1=181247&r2=181248&view=diff
==============================================================================
--- llvm/trunk/lib/DebugInfo/DWARFContext.cpp (original)
+++ llvm/trunk/lib/DebugInfo/DWARFContext.cpp Mon May 6 16:19:44 2013
@@ -141,7 +141,8 @@ void DWARFContext::dump(raw_ostream &OS,
OS << "\n.debug_str_offsets.dwo contents:\n";
DataExtractor strOffsetExt(getStringOffsetDWOSection(), isLittleEndian(), 0);
offset = 0;
- while (offset < getStringOffsetDWOSection().size()) {
+ uint64_t size = getStringOffsetDWOSection().size();
+ while (offset < size) {
OS << format("0x%8.8x: ", offset);
OS << format("%8.8x\n", strOffsetExt.getU32(&offset));
}
More information about the llvm-commits
mailing list