[MIR Serialization] static -> static const in getSerializable*MachineOperandTargetFlags
Make the arrays 'static const' instead of just 'static'. Post-commit review comment from Roman Divacky on IRC. NFC. llvm-svn: 246376
This commit is contained in:
@@ -2988,7 +2988,7 @@ AArch64InstrInfo::decomposeMachineOperandsTargetFlags(unsigned TF) const {
|
||||
ArrayRef<std::pair<unsigned, const char *>>
|
||||
AArch64InstrInfo::getSerializableDirectMachineOperandTargetFlags() const {
|
||||
using namespace AArch64II;
|
||||
static std::pair<unsigned, const char *> TargetFlags[] = {
|
||||
static const std::pair<unsigned, const char *> TargetFlags[] = {
|
||||
{MO_PAGE, "aarch64-page"},
|
||||
{MO_PAGEOFF, "aarch64-pageoff"},
|
||||
{MO_G3, "aarch64-g3"},
|
||||
@@ -3002,7 +3002,7 @@ AArch64InstrInfo::getSerializableDirectMachineOperandTargetFlags() const {
|
||||
ArrayRef<std::pair<unsigned, const char *>>
|
||||
AArch64InstrInfo::getSerializableBitmaskMachineOperandTargetFlags() const {
|
||||
using namespace AArch64II;
|
||||
static std::pair<unsigned, const char *> TargetFlags[] = {
|
||||
static const std::pair<unsigned, const char *> TargetFlags[] = {
|
||||
{MO_GOT, "aarch64-got"},
|
||||
{MO_NC, "aarch64-nc"},
|
||||
{MO_TLS, "aarch64-tls"},
|
||||
|
||||
@@ -2001,7 +2001,7 @@ PPCInstrInfo::decomposeMachineOperandsTargetFlags(unsigned TF) const {
|
||||
ArrayRef<std::pair<unsigned, const char *>>
|
||||
PPCInstrInfo::getSerializableDirectMachineOperandTargetFlags() const {
|
||||
using namespace PPCII;
|
||||
static std::pair<unsigned, const char *> TargetFlags[] = {
|
||||
static const std::pair<unsigned, const char *> TargetFlags[] = {
|
||||
{MO_LO, "ppc-lo"},
|
||||
{MO_HA, "ppc-ha"},
|
||||
{MO_TPREL_LO, "ppc-tprel-lo"},
|
||||
@@ -2016,7 +2016,7 @@ PPCInstrInfo::getSerializableDirectMachineOperandTargetFlags() const {
|
||||
ArrayRef<std::pair<unsigned, const char *>>
|
||||
PPCInstrInfo::getSerializableBitmaskMachineOperandTargetFlags() const {
|
||||
using namespace PPCII;
|
||||
static std::pair<unsigned, const char *> TargetFlags[] = {
|
||||
static const std::pair<unsigned, const char *> TargetFlags[] = {
|
||||
{MO_PLT_OR_STUB, "ppc-plt-or-stub"},
|
||||
{MO_PIC_FLAG, "ppc-pic"},
|
||||
{MO_NLP_FLAG, "ppc-nlp"},
|
||||
|
||||
@@ -6654,7 +6654,7 @@ X86InstrInfo::decomposeMachineOperandsTargetFlags(unsigned TF) const {
|
||||
ArrayRef<std::pair<unsigned, const char *>>
|
||||
X86InstrInfo::getSerializableDirectMachineOperandTargetFlags() const {
|
||||
using namespace X86II;
|
||||
static std::pair<unsigned, const char *> TargetFlags[] = {
|
||||
static const std::pair<unsigned, const char *> TargetFlags[] = {
|
||||
{MO_GOT_ABSOLUTE_ADDRESS, "x86-got-absolute-address"},
|
||||
{MO_PIC_BASE_OFFSET, "x86-pic-base-offset"},
|
||||
{MO_GOT, "x86-got"},
|
||||
|
||||
Reference in New Issue
Block a user