[llvm-commits] [llvm] r126141 - /llvm/trunk/lib/MC/MCSectionMachO.cpp

Stuart Hastings stuart at apple.com
Mon Feb 21 13:07:07 PST 2011


Author: stuart
Date: Mon Feb 21 15:07:07 2011
New Revision: 126141

URL: http://llvm.org/viewvc/llvm-project?rev=126141&view=rev
Log:
End the line if we return early.  Radar 9012638.

Modified:
    llvm/trunk/lib/MC/MCSectionMachO.cpp

Modified: llvm/trunk/lib/MC/MCSectionMachO.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCSectionMachO.cpp?rev=126141&r1=126140&r2=126141&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCSectionMachO.cpp (original)
+++ llvm/trunk/lib/MC/MCSectionMachO.cpp Mon Feb 21 15:07:07 2011
@@ -108,9 +108,11 @@
   if (SectionTypeDescriptors[SectionType].AssemblerName) {
     OS << ',';
     OS << SectionTypeDescriptors[SectionType].AssemblerName;
-  } else
+  } else {
     // If we have no name for the attribute, stop here.
+    OS << '\n';
     return;
+  }
 
   // If we don't have any attributes, we're done.
   unsigned SectionAttrs = TAA & MCSectionMachO::SECTION_ATTRIBUTES;





More information about the llvm-commits mailing list