projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
5a0c366
)
Hoist boundary condition out of loop header.
author
Eric Christopher
<echristo@gmail.com>
Mon, 6 May 2013 21:19:44 +0000
(21:19 +0000)
committer
Eric Christopher
<echristo@gmail.com>
Mon, 6 May 2013 21:19:44 +0000
(21:19 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181248
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/DebugInfo/DWARFContext.cpp
patch
|
blob
|
history
diff --git
a/lib/DebugInfo/DWARFContext.cpp
b/lib/DebugInfo/DWARFContext.cpp
index a47fe56fe42349b767ef7b0fab2df237efc6dbbf..9f521330c34f4b3b25b3a15bbed79c7c15df6167 100644
(file)
--- a/
lib/DebugInfo/DWARFContext.cpp
+++ b/
lib/DebugInfo/DWARFContext.cpp
@@
-141,7
+141,8
@@
void DWARFContext::dump(raw_ostream &OS, DIDumpType DumpType) {
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));
}