[llvm-commits] [llvm] r162499 - /llvm/trunk/lib/DebugInfo/DWARFCompileUnit.cpp

Eric Christopher echristo at apple.com
Thu Aug 23 16:26:57 PDT 2012


Author: echristo
Date: Thu Aug 23 18:26:57 2012
New Revision: 162499

URL: http://llvm.org/viewvc/llvm-project?rev=162499&view=rev
Log:
Formatting cleanup.

Modified:
    llvm/trunk/lib/DebugInfo/DWARFCompileUnit.cpp

Modified: llvm/trunk/lib/DebugInfo/DWARFCompileUnit.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/DebugInfo/DWARFCompileUnit.cpp?rev=162499&r1=162498&r2=162499&view=diff
==============================================================================
--- llvm/trunk/lib/DebugInfo/DWARFCompileUnit.cpp (original)
+++ llvm/trunk/lib/DebugInfo/DWARFCompileUnit.cpp Thu Aug 23 18:26:57 2012
@@ -63,7 +63,7 @@
     Version = debug_info_data.getU16(&offset);
     bool abbrevsOK = debug_info_data.getU32(&offset) == abbrevs->getOffset();
     Abbrevs = abbrevs;
-    AddrSize = debug_info_data.getU8 (&offset);
+    AddrSize = debug_info_data.getU8(&offset);
 
     bool versionOK = DWARFContext::isSupportedVersion(Version);
     bool addrSizeOK = AddrSize == 4 || AddrSize == 8;
@@ -176,11 +176,11 @@
       addDIE(die);
       return 1;
     }
-    else if (depth == 0 && initial_die_array_size == 1) {
+    else if (depth == 0 && initial_die_array_size == 1)
       // Don't append the CU die as we already did that
-    } else {
-      addDIE (die);
-    }
+      ;
+    else
+      addDIE(die);
 
     const DWARFAbbreviationDeclaration *abbrDecl =
       die.getAbbreviationDeclarationPtr();
@@ -202,8 +202,8 @@
   // should always terminate at or before the start of the next compilation
   // unit header).
   if (offset > next_cu_offset)
-    fprintf (stderr, "warning: DWARF compile unit extends beyond its"
-                     "bounds cu 0x%8.8x at 0x%8.8x'\n", getOffset(), offset);
+    fprintf(stderr, "warning: DWARF compile unit extends beyond its"
+                    "bounds cu 0x%8.8x at 0x%8.8x'\n", getOffset(), offset);
 
   setDIERelations();
   return DieArray.size();





More information about the llvm-commits mailing list