[llvm] r371251 - Remove dead .seh_stackalloc parsing method in X86AsmParser
Reid Kleckner via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 6 13:12:44 PDT 2019
Author: rnk
Date: Fri Sep 6 13:12:44 2019
New Revision: 371251
URL: http://llvm.org/viewvc/llvm-project?rev=371251&view=rev
Log:
Remove dead .seh_stackalloc parsing method in X86AsmParser
The shared COFF asm parser code handles this directive, since it is
shared with AArch64. Spotted by Alexandre Ganea in review.
Modified:
llvm/trunk/lib/Target/X86/AsmParser/X86AsmParser.cpp
Modified: llvm/trunk/lib/Target/X86/AsmParser/X86AsmParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/AsmParser/X86AsmParser.cpp?rev=371251&r1=371250&r2=371251&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/AsmParser/X86AsmParser.cpp (original)
+++ llvm/trunk/lib/Target/X86/AsmParser/X86AsmParser.cpp Fri Sep 6 13:12:44 2019
@@ -874,7 +874,6 @@ private:
bool parseSEHRegisterNumber(unsigned RegClassID, unsigned &RegNo);
bool parseDirectiveSEHPushReg(SMLoc);
bool parseDirectiveSEHSetFrame(SMLoc);
- bool parseDirectiveSEHAllocStack(SMLoc);
bool parseDirectiveSEHSaveReg(SMLoc);
bool parseDirectiveSEHSaveXMM(SMLoc);
bool parseDirectiveSEHPushFrame(SMLoc);
@@ -3819,19 +3818,6 @@ bool X86AsmParser::parseDirectiveSEHSetF
return false;
}
-bool X86AsmParser::parseDirectiveSEHAllocStack(SMLoc Loc) {
- int64_t Size;
- if (getParser().parseAbsoluteExpression(Size))
- return true;
-
- if (getLexer().isNot(AsmToken::EndOfStatement))
- return TokError("unexpected token in directive");
-
- getParser().Lex();
- getStreamer().EmitWinCFIAllocStack(Size, Loc);
- return false;
-}
-
bool X86AsmParser::parseDirectiveSEHSaveReg(SMLoc Loc) {
unsigned Reg = 0;
int64_t Off;
More information about the llvm-commits
mailing list