summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2013-07-15 08:02:13 +0000
committerCraig Topper <craig.topper@gmail.com>2013-07-15 08:02:13 +0000
commit06b3b6651ec88f21eb29a834bde16c0f8d9c3d2c (patch)
treeb1bd701acdfae7922d3f8b99a204d80ecb87da9c /llvm/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp
parente952ad0bc10e7794a7c3c3f460adbdfa35df1247 (diff)
downloadbcm5719-llvm-06b3b6651ec88f21eb29a834bde16c0f8d9c3d2c.tar.gz
bcm5719-llvm-06b3b6651ec88f21eb29a834bde16c0f8d9c3d2c.zip
Add 'const' qualifier to some arrays.
llvm-svn: 186312
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp b/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp
index 900f1401523..f5fe168547c 100644
--- a/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp
@@ -2401,7 +2401,8 @@ static bool BURRSort(SUnit *left, SUnit *right, RegReductionPQBase *SPQ) {
bool RHasPhysReg = right->hasPhysRegDefs;
if (LHasPhysReg != RHasPhysReg) {
#ifndef NDEBUG
- const char *const PhysRegMsg[] = {" has no physreg"," defines a physreg"};
+ static const char *const PhysRegMsg[] = { " has no physreg",
+ " defines a physreg" };
#endif
DEBUG(dbgs() << " SU (" << left->NodeNum << ") "
<< PhysRegMsg[LHasPhysReg] << " SU(" << right->NodeNum << ") "
OpenPOWER on IntegriCloud