[PATCH] D87246: [ms] [llvm-ml] Add missing built-in type aliases
Eric Astor via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 7 10:34:14 PDT 2020
epastor created this revision.
epastor added a reviewer: thakis.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.
epastor requested review of this revision.
Add signed aliases for integral types, as well as the "DF" abbreviation for the FWORD type.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D87246
Files:
llvm/lib/MC/MCParser/MasmParser.cpp
Index: llvm/lib/MC/MCParser/MasmParser.cpp
===================================================================
--- llvm/lib/MC/MCParser/MasmParser.cpp
+++ llvm/lib/MC/MCParser/MasmParser.cpp
@@ -623,6 +623,7 @@
DK_SQWORD,
DK_DB,
DK_DD,
+ DK_DF,
DK_DQ,
DK_DW,
DK_REAL4,
@@ -2114,6 +2115,7 @@
case DK_DD:
return parseDirectiveValue(IDVal, 4);
case DK_FWORD:
+ case DK_DF:
return parseDirectiveValue(IDVal, 6);
case DK_QWORD:
case DK_SQWORD:
@@ -2325,21 +2327,26 @@
Lex();
return parseDirectiveEquate(nextVal, IDVal, DirKind);
case DK_BYTE:
+ case DK_SBYTE:
case DK_DB:
Lex();
return parseDirectiveNamedValue(nextVal, 1, IDVal, IDLoc);
case DK_WORD:
+ case DK_SWORD:
case DK_DW:
Lex();
return parseDirectiveNamedValue(nextVal, 2, IDVal, IDLoc);
case DK_DWORD:
+ case DK_SDWORD:
case DK_DD:
Lex();
return parseDirectiveNamedValue(nextVal, 4, IDVal, IDLoc);
case DK_FWORD:
+ case DK_DF:
Lex();
return parseDirectiveNamedValue(nextVal, 6, IDVal, IDLoc);
case DK_QWORD:
+ case DK_SQWORD:
case DK_DQ:
Lex();
return parseDirectiveNamedValue(nextVal, 8, IDVal, IDLoc);
@@ -6284,6 +6291,7 @@
// DirectiveKindMap[".noaltmacro"] = DK_NOALTMACRO;
DirectiveKindMap["db"] = DK_DB;
DirectiveKindMap["dd"] = DK_DD;
+ DirectiveKindMap["df"] = DK_DF;
DirectiveKindMap["dq"] = DK_DQ;
DirectiveKindMap["dw"] = DK_DW;
DirectiveKindMap["echo"] = DK_ECHO;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D87246.290317.patch
Type: text/x-patch
Size: 1512 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200907/ed4a74f7/attachment.bin>
More information about the llvm-commits
mailing list