diff options
author | Hal Finkel <hfinkel@anl.gov> | 2015-08-30 08:07:29 +0000 |
---|---|---|
committer | Hal Finkel <hfinkel@anl.gov> | 2015-08-30 08:07:29 +0000 |
commit | 982e8d48f82d86d6d3030845e01a94de65ee7f2c (patch) | |
tree | f32ec47e7cca769a159d06c6df176bc5ad937206 /llvm/lib/Target/PowerPC/PPCInstrInfo.cpp | |
parent | d96f37a77264faace54254166c23bf3d0ba8f98d (diff) | |
download | llvm-982e8d48f82d86d6d3030845e01a94de65ee7f2c.zip llvm-982e8d48f82d86d6d3030845e01a94de65ee7f2c.tar.gz llvm-982e8d48f82d86d6d3030845e01a94de65ee7f2c.tar.bz2 |
[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
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCInstrInfo.cpp')
-rw-r--r-- | llvm/lib/Target/PowerPC/PPCInstrInfo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp b/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp index 358beaf..79c399b 100644 --- a/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp +++ b/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp @@ -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"}, |