Page MenuHomePhabricator

[Hexagon] Use addAliasForDirective for data directives

Authored by asb on May 17 2018, 12:04 AM.



Data directives such as .word, .half, .hword are currently parsed using HexagonAsmParser::ParseDirectiveValue which effectively duplicates logic from AsmParser::parseDirectiveValue. This patch deletes that duplicated logic in favour of using addAliasForDirective.

Diff Detail

Event Timeline

asb created this revision.May 17 2018, 12:04 AM
kparzysz accepted this revision.May 17 2018, 5:34 AM

LGTM. Thanks!

This revision is now accepted and ready to land.May 17 2018, 5:34 AM
This revision was automatically updated to reflect the committed changes.