[llvm-commits] [llvm] r141392 - in /llvm/trunk/tools: llvm-dwarfdump/llvm-dwarfdump.cpp llvm-size/llvm-size.cpp

Michael J. Spencer bigcheesegs at gmail.com
Fri Oct 7 12:52:41 PDT 2011


Author: mspencer
Date: Fri Oct  7 14:52:41 2011
New Revision: 141392

URL: http://llvm.org/viewvc/llvm-project?rev=141392&view=rev
Log:
Fix a few changes I missed.

Modified:
    llvm/trunk/tools/llvm-dwarfdump/llvm-dwarfdump.cpp
    llvm/trunk/tools/llvm-size/llvm-size.cpp

Modified: llvm/trunk/tools/llvm-dwarfdump/llvm-dwarfdump.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-dwarfdump/llvm-dwarfdump.cpp?rev=141392&r1=141391&r2=141392&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-dwarfdump/llvm-dwarfdump.cpp (original)
+++ llvm/trunk/tools/llvm-dwarfdump/llvm-dwarfdump.cpp Fri Oct  7 14:52:41 2011
@@ -56,9 +56,9 @@
   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;

Modified: llvm/trunk/tools/llvm-size/llvm-size.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-size/llvm-size.cpp?rev=141392&r1=141391&r2=141392&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-size/llvm-size.cpp (original)
+++ llvm/trunk/tools/llvm-size/llvm-size.cpp Fri Oct  7 14:52:41 2011
@@ -112,9 +112,9 @@
     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 @@
         << "%#" << 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 @@
 
     // 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;
 





More information about the llvm-commits mailing list