summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/X86InstrInfo.cpp
diff options
context:
space:
mode:
authorHal Finkel <hfinkel@anl.gov>2015-08-30 08:07:29 +0000
committerHal Finkel <hfinkel@anl.gov>2015-08-30 08:07:29 +0000
commit982e8d48f82d86d6d3030845e01a94de65ee7f2c (patch)
treef32ec47e7cca769a159d06c6df176bc5ad937206 /llvm/lib/Target/X86/X86InstrInfo.cpp
parentd96f37a77264faace54254166c23bf3d0ba8f98d (diff)
downloadbcm5719-llvm-982e8d48f82d86d6d3030845e01a94de65ee7f2c.tar.gz
bcm5719-llvm-982e8d48f82d86d6d3030845e01a94de65ee7f2c.zip
[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/X86/X86InstrInfo.cpp')
-rw-r--r--llvm/lib/Target/X86/X86InstrInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/X86InstrInfo.cpp b/llvm/lib/Target/X86/X86InstrInfo.cpp
index 44c16a2b2f7..be4f6c72320 100644
--- a/llvm/lib/Target/X86/X86InstrInfo.cpp
+++ b/llvm/lib/Target/X86/X86InstrInfo.cpp
@@ -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"},
OpenPOWER on IntegriCloud