Fix a few changes I missed.

llvm-svn: 141392
This commit is contained in:
Michael J. Spencer 2011-10-07 19:52:41 +00:00
parent 3cc26e4c5e
commit 7037dc0b45
2 changed files with 12 additions and 12 deletions

View File

@ -56,9 +56,9 @@ static void DumpInput(const StringRef &Filename) {
StringRef DebugStringSection;
error_code ec;
for (ObjectFile::section_iterator i = Obj->begin_sections(),
e = Obj->end_sections();
i != e; i.increment(ec)) {
for (section_iterator i = Obj->begin_sections(),
e = Obj->end_sections();
i != e; i.increment(ec)) {
StringRef name;
i->getName(name);
StringRef data;

View File

@ -112,9 +112,9 @@ static void PrintObjectSectionSizes(ObjectFile *o) {
std::size_t max_size_len = strlen("size");
std::size_t max_addr_len = strlen("addr");
error_code ec;
for (ObjectFile::section_iterator i = o->begin_sections(),
e = o->end_sections(); i != e;
i.increment(ec)) {
for (section_iterator i = o->begin_sections(),
e = o->end_sections(); i != e;
i.increment(ec)) {
if (error(ec))
return;
uint64_t size = 0;
@ -154,9 +154,9 @@ static void PrintObjectSectionSizes(ObjectFile *o) {
<< "%#" << max_addr_len << radix_fmt << "\n";
// Print each section.
for (ObjectFile::section_iterator i = o->begin_sections(),
e = o->end_sections(); i != e;
i.increment(ec)) {
for (section_iterator i = o->begin_sections(),
e = o->end_sections(); i != e;
i.increment(ec)) {
if (error(ec))
return;
@ -190,9 +190,9 @@ static void PrintObjectSectionSizes(ObjectFile *o) {
// Make one pass over the section table to calculate sizes.
error_code ec;
for (ObjectFile::section_iterator i = o->begin_sections(),
e = o->end_sections(); i != e;
i.increment(ec)) {
for (section_iterator i = o->begin_sections(),
e = o->end_sections(); i != e;
i.increment(ec)) {
if (error(ec))
return;