This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU][MC][NFC] Parser refactoring
ClosedPublic

Authored by dp on Dec 23 2020, 3:37 AM.

Details

Summary

Replaced commonly used code patterns with shorter ones.
For example:

Parser.getTok().getLoc()     --> getLoc()
Parser.getTok().getString()  --> getTokenStr()
getLexer().getKind() == T    --> isToken(T)

Diff Detail

Event Timeline

dp created this revision.Dec 23 2020, 3:37 AM
dp requested review of this revision.Dec 23 2020, 3:37 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 23 2020, 3:37 AM
rampitec accepted this revision.Dec 23 2020, 9:45 AM
This revision is now accepted and ready to land.Dec 23 2020, 9:45 AM
This revision was automatically updated to reflect the committed changes.