summaryrefslogtreecommitdiff
path: root/lib/MC/MCSectionMachO.cpp
diff options
context:
space:
mode:
authorStuart Hastings <stuart@apple.com>2011-02-21 21:07:07 +0000
committerStuart Hastings <stuart@apple.com>2011-02-21 21:07:07 +0000
commit37c79c59420763ab78aaaef0b54ac6a702325c3e (patch)
tree6ef27fbcde6f37db2abc1e9a31ed9f9be0fec0d5 /lib/MC/MCSectionMachO.cpp
parent8b8b4af40473bd9354a5425e0ef8f88184f37935 (diff)
downloadllvm-37c79c59420763ab78aaaef0b54ac6a702325c3e.tar.gz
llvm-37c79c59420763ab78aaaef0b54ac6a702325c3e.tar.bz2
llvm-37c79c59420763ab78aaaef0b54ac6a702325c3e.tar.xz
End the line if we return early. Radar 9012638.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126141 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/MCSectionMachO.cpp')
-rw-r--r--lib/MC/MCSectionMachO.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/MC/MCSectionMachO.cpp b/lib/MC/MCSectionMachO.cpp
index 2cfecb2d8b..577e93aed6 100644
--- a/lib/MC/MCSectionMachO.cpp
+++ b/lib/MC/MCSectionMachO.cpp
@@ -108,9 +108,11 @@ void MCSectionMachO::PrintSwitchToSection(const MCAsmInfo &MAI,
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;