This is an archive of the discontinued LLVM Phabricator instance.

[Hexagon] Use addAliasForDirective for data directives
ClosedPublic

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

Details

Summary

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

Repository
rL LLVM

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.