Skip to content

Commit fc7efed

Browse files
committed
format
1 parent 5009524 commit fc7efed

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

llvm/lib/MC/MCParser/AsmParser.cpp

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3880,11 +3880,9 @@ bool AsmParser::parseDirectiveCVLinetable() {
38803880
SMLoc Loc = getTok().getLoc();
38813881
if (parseCVFunctionId(FunctionId, ".cv_linetable") || parseComma() ||
38823882
parseTokenLoc(Loc) ||
3883-
check(parseSymbol(FnStartSym), Loc,
3884-
"expected identifier in directive") ||
3883+
check(parseSymbol(FnStartSym), Loc, "expected identifier in directive") ||
38853884
parseComma() || parseTokenLoc(Loc) ||
3886-
check(parseSymbol(FnEndSym), Loc,
3887-
"expected identifier in directive"))
3885+
check(parseSymbol(FnEndSym), Loc, "expected identifier in directive"))
38883886
return true;
38893887

38903888
getStreamer().emitCVLinetableDirective(FunctionId, FnStartSym, FnEndSym);
@@ -4306,8 +4304,7 @@ bool AsmParser::parseDirectiveCFIPersonalityOrLsda(bool IsPersonality) {
43064304
MCSymbol *Sym;
43074305
if (check(!isValidEncoding(Encoding), "unsupported encoding.") ||
43084306
parseComma() ||
4309-
check(parseSymbol(Sym), "expected identifier in directive") ||
4310-
parseEOL())
4307+
check(parseSymbol(Sym), "expected identifier in directive") || parseEOL())
43114308
return true;
43124309

43134310
if (IsPersonality)

llvm/lib/MC/MCParser/DarwinAsmParser.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,8 @@ bool DarwinAsmParser::parseDirectiveIndirectSymbol(StringRef, SMLoc Loc) {
563563
return TokError("non-local symbol required in directive");
564564

565565
if (!getStreamer().emitSymbolAttribute(Sym, MCSA_IndirectSymbol))
566-
return TokError("unable to emit indirect symbol attribute for: " + Sym->getName());
566+
return TokError("unable to emit indirect symbol attribute for: " +
567+
Sym->getName());
567568

568569
if (getLexer().isNot(AsmToken::EndOfStatement))
569570
return TokError("unexpected token in '.indirect_symbol' directive");

0 commit comments

Comments
 (0)