llvm.org GIT mirror llvm / 2099039
Fix a few changes I missed. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141392 91177308-0d34-0410-b5e6-96231b3b80d8 Michael J. Spencer 8 years ago
2 changed file(s) with 12 addition(s) and 12 deletion(s). Raw diff Collapse all Expand all
5555 StringRef DebugStringSection;
5656
5757 error_code ec;
58 for (ObjectFile::section_iterator i = Obj->begin_sections(),
59 e = Obj->end_sections();
60 i != e; i.increment(ec)) {
58 for (section_iterator i = Obj->begin_sections(),
59 e = Obj->end_sections();
60 i != e; i.increment(ec)) {
6161 StringRef name;
6262 i->getName(name);
6363 StringRef data;
111111 std::size_t max_size_len = strlen("size");
112112 std::size_t max_addr_len = strlen("addr");
113113 error_code ec;
114 for (ObjectFile::section_iterator i = o->begin_sections(),
115 e = o->end_sections(); i != e;
116 i.increment(ec)) {
114 for (section_iterator i = o->begin_sections(),
115 e = o->end_sections(); i != e;
116 i.increment(ec)) {
117117 if (error(ec))
118118 return;
119119 uint64_t size = 0;
153153 << "%#" << max_addr_len << radix_fmt << "\n";
154154
155155 // Print each section.
156 for (ObjectFile::section_iterator i = o->begin_sections(),
157 e = o->end_sections(); i != e;
158 i.increment(ec)) {
156 for (section_iterator i = o->begin_sections(),
157 e = o->end_sections(); i != e;
158 i.increment(ec)) {
159159 if (error(ec))
160160 return;
161161
189189
190190 // Make one pass over the section table to calculate sizes.
191191 error_code ec;
192 for (ObjectFile::section_iterator i = o->begin_sections(),
193 e = o->end_sections(); i != e;
194 i.increment(ec)) {
192 for (section_iterator i = o->begin_sections(),
193 e = o->end_sections(); i != e;
194 i.increment(ec)) {
195195 if (error(ec))
196196 return;
197197