Add return statements to make it clear that all of these are mutually exclusive conditions.

else if would have worked just as well, but this keeps the original readability a bit more clear.

llvm-svn: 334988
This commit is contained in:
Eric Christopher 2018-06-18 22:21:13 +00:00
parent 714665d417
commit fb21b6d9b3

View File

@ -689,6 +689,7 @@ void X86AsmPrinter::EmitEndOfAsmFile(Module &M) {
// linker can safely perform dead code stripping. Since LLVM never
// generates code that does this, it is always safe to set.
OutStreamer->EmitAssemblerFlag(MCAF_SubsectionsViaSymbols);
return;
}
if (TT.isKnownWindowsMSVCEnvironment() && MMI->usesVAFloatArgument()) {
@ -696,15 +697,18 @@ void X86AsmPrinter::EmitEndOfAsmFile(Module &M) {
(TT.getArch() == Triple::x86_64) ? "_fltused" : "__fltused";
MCSymbol *S = MMI->getContext().getOrCreateSymbol(SymbolName);
OutStreamer->EmitSymbolAttribute(S, MCSA_Global);
return;
}
if (TT.isOSBinFormatCOFF()) {
SM.serializeToStackMapSection();
return;
}
if (TT.isOSBinFormatELF()) {
SM.serializeToStackMapSection();
FM.serializeToFaultMapSection();
return;
}
}