OSDN Git Service

[X86] Use addAliasForDirective to support the .word directive (reland)
authorAlex Bradbury <asb@lowrisc.org>
Mon, 2 Jul 2018 13:49:52 +0000 (13:49 +0000)
committerAlex Bradbury <asb@lowrisc.org>
Mon, 2 Jul 2018 13:49:52 +0000 (13:49 +0000)
commiteca25385a8051dae0f5e0cd75676f28af5f41a59
tree637af25b53ff3016a391d1f8529977d3805577db
parentf1f3f984f72606f9f83879c7d0b35b7e2d5b005c
[X86] Use addAliasForDirective to support the .word directive (reland)

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

This is a fixed reland of rL336100. This should have been caught in
pre-commit testing so apologies for the noise.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@336104 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/AsmParser/X86AsmParser.cpp