[llvm] c8508fa - [X86][MC] Remove "in directive" from diagnostics
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 1 14:15:48 PST 2022
Author: Fangrui Song
Date: 2022-12-01T22:15:41Z
New Revision: c8508fa6dcc47ed68e41be9b9147ed05ece3d4f7
URL: https://github.com/llvm/llvm-project/commit/c8508fa6dcc47ed68e41be9b9147ed05ece3d4f7
DIFF: https://github.com/llvm/llvm-project/commit/c8508fa6dcc47ed68e41be9b9147ed05ece3d4f7.diff
LOG: [X86][MC] Remove "in directive" from diagnostics
Added:
Modified:
llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp b/llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp
index 6e3668c61cd27..f667e040ea086 100644
--- a/llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp
+++ b/llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp
@@ -4887,7 +4887,7 @@ bool X86AsmParser::parseDirectiveSEHPushReg(SMLoc Loc) {
return true;
if (getLexer().isNot(AsmToken::EndOfStatement))
- return TokError("unexpected token in directive");
+ return TokError("expected end of directive");
getParser().Lex();
getStreamer().emitWinCFIPushReg(Reg, Loc);
@@ -4907,7 +4907,7 @@ bool X86AsmParser::parseDirectiveSEHSetFrame(SMLoc Loc) {
return true;
if (getLexer().isNot(AsmToken::EndOfStatement))
- return TokError("unexpected token in directive");
+ return TokError("expected end of directive");
getParser().Lex();
getStreamer().emitWinCFISetFrame(Reg, Off, Loc);
@@ -4927,7 +4927,7 @@ bool X86AsmParser::parseDirectiveSEHSaveReg(SMLoc Loc) {
return true;
if (getLexer().isNot(AsmToken::EndOfStatement))
- return TokError("unexpected token in directive");
+ return TokError("expected end of directive");
getParser().Lex();
getStreamer().emitWinCFISaveReg(Reg, Off, Loc);
@@ -4947,7 +4947,7 @@ bool X86AsmParser::parseDirectiveSEHSaveXMM(SMLoc Loc) {
return true;
if (getLexer().isNot(AsmToken::EndOfStatement))
- return TokError("unexpected token in directive");
+ return TokError("expected end of directive");
getParser().Lex();
getStreamer().emitWinCFISaveXMM(Reg, Off, Loc);
@@ -4968,7 +4968,7 @@ bool X86AsmParser::parseDirectiveSEHPushFrame(SMLoc Loc) {
}
if (getLexer().isNot(AsmToken::EndOfStatement))
- return TokError("unexpected token in directive");
+ return TokError("expected end of directive");
getParser().Lex();
getStreamer().emitWinCFIPushFrame(Code, Loc);
More information about the llvm-commits
mailing list