[M68k][NFC] Rename M68kOperand::Kind to KindTy
authorRicky Taylor <rickytaylor26@gmail.com>
Wed, 25 Aug 2021 19:48:28 +0000 (20:48 +0100)
committerRicky Taylor <rickytaylor26@gmail.com>
Wed, 25 Aug 2021 21:24:43 +0000 (22:24 +0100)
commitf659b6b1fa43ffb8c95dbbf767ef57f6e964e7f6
tree2abd66363765359de47530e0af8875a9386be189
parentc2c9a3fd9c2c2d293e31d2e406a255fb18e4bb81
[M68k][NFC] Rename M68kOperand::Kind to KindTy

Rename the M68kOperand::Type enumeration to KindTy to avoid ambiguity
with the Kind field when referencing enumeration values e.g.
`Kind::Value`.

This works around a compilation error under GCC 5, where GCC won't
lookup enum class values if you have a similarly named field
(see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60994).

The error in question is:
`M68kAsmParser.cpp:857:8: error: 'Kind' is not a class, namespace, or enumeration`

Differential Revision: https://reviews.llvm.org/D108723
llvm/lib/Target/M68k/AsmParser/M68kAsmParser.cpp