projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[SEH] Add new intrinsics for recovering and restoring parent frames
[oota-llvm.git]
/
lib
/
CodeGen
/
AsmPrinter
/
DIE.cpp
diff --git
a/lib/CodeGen/AsmPrinter/DIE.cpp
b/lib/CodeGen/AsmPrinter/DIE.cpp
index 80e9096bfea23b6458a00153503b111419deb05c..46dbc7693698d39e1277886ffcb08dc2be88d345 100644
(file)
--- a/
lib/CodeGen/AsmPrinter/DIE.cpp
+++ b/
lib/CodeGen/AsmPrinter/DIE.cpp
@@
-165,25
+165,23
@@
void DIE::print(raw_ostream &O, unsigned IndentCount) const {
}
IndentCount += 2;
}
IndentCount += 2;
- for (unsigned i = 0, N = Values.size(); i < N; ++i) {
+ unsigned I = 0;
+ for (const auto &V : Values) {
O << Indent;
if (!isBlock)
O << Indent;
if (!isBlock)
- O << dwarf::AttributeString(V
alues[i]
.getAttribute());
+ O << dwarf::AttributeString(V.getAttribute());
else
else
- O << "Blk[" <<
i
<< "]";
+ O << "Blk[" <<
I++
<< "]";
- O << " "
- << dwarf::FormEncodingString(Values[i].getForm())
- << " ";
- Values[i].print(O);
+ O << " " << dwarf::FormEncodingString(V.getForm()) << " ";
+ V.print(O);
O << "\n";
}
IndentCount -= 2;
O << "\n";
}
IndentCount -= 2;
- for (unsigned j = 0, M = Children.size(); j < M; ++j) {
- Children[j]->print(O, IndentCount+4);
- }
+ for (const auto &Child : children())
+ Child.print(O, IndentCount + 4);
if (!isBlock) O << "\n";
}
if (!isBlock) O << "\n";
}