diff options
author | Stuart Hastings <stuart@apple.com> | 2011-02-21 21:07:07 +0000 |
---|---|---|
committer | Stuart Hastings <stuart@apple.com> | 2011-02-21 21:07:07 +0000 |
commit | d7927e0fcd97df78d47b8382df466b54315fde51 (patch) | |
tree | a58c49ea81db41046e8efe7e0ca189ae06cd6f06 /llvm/lib/MC/MCSectionMachO.cpp | |
parent | 550380555555efa9260c12c70623997e133afe13 (diff) | |
download | llvm-d7927e0fcd97df78d47b8382df466b54315fde51.zip llvm-d7927e0fcd97df78d47b8382df466b54315fde51.tar.gz llvm-d7927e0fcd97df78d47b8382df466b54315fde51.tar.bz2 |
End the line if we return early. Radar 9012638.
llvm-svn: 126141
Diffstat (limited to 'llvm/lib/MC/MCSectionMachO.cpp')
-rw-r--r-- | llvm/lib/MC/MCSectionMachO.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/MC/MCSectionMachO.cpp b/llvm/lib/MC/MCSectionMachO.cpp index 2cfecb2..577e93a 100644 --- a/llvm/lib/MC/MCSectionMachO.cpp +++ b/llvm/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; |