[X86] Use addAliasForDirective to support the .word directive
authorAlex Bradbury <asb@lowrisc.org>
Mon, 2 Jul 2018 13:37:15 +0000 (13:37 +0000)
committerAlex Bradbury <asb@lowrisc.org>
Mon, 2 Jul 2018 13:37:15 +0000 (13:37 +0000)
commit42485ec9ca06bb20c6780330f94a12b8d7cb29e8
treeb99680ef59a7dad796c8a7de9ee6eb64757f352b
parent8fc5ec78d54df15de2908f16d55945da4b239613
[X86] Use addAliasForDirective to support the .word directive

The X86 asm parser currently has custom parsing logic for .word. Rather than
use this custom logic, we can just use addAliasForDirective to enable the
reuse of AsmParser::parseDirectiveValue.

See also similar changes to Sparc (rL333078), AArch64 (rL333077), and Hexagon
(rL332607) backends.

Differential Revision: https://reviews.llvm.org/D47004

llvm-svn: 336100
llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp