Format my previous commit
authorDavid Blaikie <dblaikie@gmail.com>
Wed, 11 Nov 2015 19:30:47 +0000 (19:30 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Wed, 11 Nov 2015 19:30:47 +0000 (19:30 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@252782 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/DebugInfo/DWARF/DWARFUnitIndex.h
lib/DebugInfo/DWARF/DWARFContext.cpp
lib/DebugInfo/DWARF/DWARFUnitIndex.cpp
tools/llvm-dwarfdump/llvm-dwarfdump.cpp

index d50b6b1eea1810251b58f338a5118ad71d73c6dc..647838217ca3b9d132598d09c30a286f370337c1 100644 (file)
@@ -35,7 +35,6 @@ public:
   bool parse(DataExtractor IndexData);
   void dump(raw_ostream &OS) const;
 };
-
 }
 
 #endif
index 7ece6787d076b2be6e5e84683e04eb57bd1a575b..9d5a78a05708a5fa19860dce6e5daab48f7ec5c5 100644 (file)
@@ -158,7 +158,8 @@ void DWARFContext::dump(raw_ostream &OS, DIDumpType DumpType) {
 
   if (DumpType == DIDT_All || DumpType == DIDT_CUIndex) {
     OS << "\n.debug_cu_index contents:\n";
-    DataExtractor CUIndexData(getCUIndexSection(), isLittleEndian(), savedAddressByteSize);
+    DataExtractor CUIndexData(getCUIndexSection(), isLittleEndian(),
+                              savedAddressByteSize);
     DWARFUnitIndex CUIndex;
     CUIndex.parse(CUIndexData);
     CUIndex.dump(OS);
index 5970fe03360a480eb386f06d4695c8dd80d94236..172fb9279d4d22e07560054a60fabc6fd288018b 100644 (file)
@@ -11,7 +11,8 @@
 
 namespace llvm {
 
-bool DWARFUnitIndex::Header::parse(DataExtractor IndexData, uint32_t *OffsetPtr) {
+bool DWARFUnitIndex::Header::parse(DataExtractor IndexData,
+                                   uint32_t *OffsetPtr) {
   Version = IndexData.getU32(OffsetPtr);
   NumColumns = IndexData.getU32(OffsetPtr);
   NumUnits = IndexData.getU32(OffsetPtr);
@@ -34,8 +35,5 @@ bool DWARFUnitIndex::parse(DataExtractor IndexData) {
   return true;
 }
 
-void DWARFUnitIndex::dump(raw_ostream &OS) const {
-  Header.dump(OS);
-}
-
+void DWARFUnitIndex::dump(raw_ostream &OS) const { Header.dump(OS); }
 }
index 9ab2047c352206e1d4c8ada68b9249a6f284ff32..8bf9225d6df59f038a69baa66d97da7985d6f4d1 100644 (file)
@@ -39,16 +39,16 @@ static cl::list<std::string>
 InputFilenames(cl::Positional, cl::desc("<input object files>"),
                cl::ZeroOrMore);
 
-static cl::opt<DIDumpType>
-DumpType("debug-dump", cl::init(DIDT_All),
-  cl::desc("Dump of debug sections:"),
-  cl::values(
+static cl::opt<DIDumpType> DumpType(
+    "debug-dump", cl::init(DIDT_All), cl::desc("Dump of debug sections:"),
+    cl::values(
         clEnumValN(DIDT_All, "all", "Dump all debug sections"),
         clEnumValN(DIDT_Abbrev, "abbrev", ".debug_abbrev"),
         clEnumValN(DIDT_AbbrevDwo, "abbrev.dwo", ".debug_abbrev.dwo"),
         clEnumValN(DIDT_AppleNames, "apple_names", ".apple_names"),
         clEnumValN(DIDT_AppleTypes, "apple_types", ".apple_types"),
-        clEnumValN(DIDT_AppleNamespaces, "apple_namespaces", ".apple_namespaces"),
+        clEnumValN(DIDT_AppleNamespaces, "apple_namespaces",
+                   ".apple_namespaces"),
         clEnumValN(DIDT_AppleObjC, "apple_objc", ".apple_objc"),
         clEnumValN(DIDT_Aranges, "aranges", ".debug_aranges"),
         clEnumValN(DIDT_Info, "info", ".debug_info"),
@@ -67,9 +67,9 @@ DumpType("debug-dump", cl::init(DIDT_All),
         clEnumValN(DIDT_GnuPubtypes, "gnu_pubtypes", ".debug_gnu_pubtypes"),
         clEnumValN(DIDT_Str, "str", ".debug_str"),
         clEnumValN(DIDT_StrDwo, "str.dwo", ".debug_str.dwo"),
-        clEnumValN(DIDT_StrOffsetsDwo, "str_offsets.dwo", ".debug_str_offsets.dwo"),
-        clEnumValN(DIDT_CUIndex, "cu_index", ".debug_cu_index"),
-        clEnumValEnd));
+        clEnumValN(DIDT_StrOffsetsDwo, "str_offsets.dwo",
+                   ".debug_str_offsets.dwo"),
+        clEnumValN(DIDT_CUIndex, "cu_index", ".debug_cu_index"), clEnumValEnd));
 
 static void error(StringRef Filename, std::error_code EC) {
   if (!EC)