]> granicus.if.org Git - llvm/commitdiff
clang-format to fix post-commit feedback
authorChris Bieneman <beanz@apple.com>
Mon, 12 Dec 2016 23:05:15 +0000 (23:05 +0000)
committerChris Bieneman <beanz@apple.com>
Mon, 12 Dec 2016 23:05:15 +0000 (23:05 +0000)
Thanks dblaikie!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@289485 91177308-0d34-0410-b5e6-96231b3b80d8

tools/yaml2obj/yaml2macho.cpp

index 76dec4bb389ef3806af79dd61ca21f82aa8d02c6..9d70f5888ac078d4b704e5ba0ec644bd9a47bd98 100644 (file)
@@ -386,14 +386,13 @@ Error MachOWriter::writeLinkEditData(raw_ostream &OS) {
 
 Error MachOWriter::writeDWARFData(raw_ostream &OS,
                                   std::vector<MachOYAML::Section> &Sections) {
-  for(auto Section : Sections) {
+  for (auto Section : Sections) {
     ZeroToOffset(OS, Section.offset);
     if (0 == strncmp(&Section.sectname[0], "__debug_str", 16)) {
       yaml2debug_str(OS, Obj.DWARF);
     } else if (0 == strncmp(&Section.sectname[0], "__debug_abbrev", 16)) {
       yaml2debug_abbrev(OS, Obj.DWARF);
-    }
-    else if (0 == strncmp(&Section.sectname[0], "__debug_aranges", 16)) {
+    } else if (0 == strncmp(&Section.sectname[0], "__debug_aranges", 16)) {
       yaml2debug_aranges(OS, Obj.DWARF);
     }
   }