summaryrefslogtreecommitdiff
path: root/lib/CodeGen/StackColoring.cpp
diff options
context:
space:
mode:
authorNadav Rotem <nrotem@apple.com>2012-09-10 13:17:58 +0000
committerNadav Rotem <nrotem@apple.com>2012-09-10 13:17:58 +0000
commit9438d1e3514ab8801e9c488d9723241af7f4dc91 (patch)
treea6a7e5bb8d327f95f901d723b8bdfd5a9f08ad82 /lib/CodeGen/StackColoring.cpp
parenta7de8a61dfae69885203137f3c712ab3d0cd75a4 (diff)
downloadllvm-9438d1e3514ab8801e9c488d9723241af7f4dc91.tar.gz
llvm-9438d1e3514ab8801e9c488d9723241af7f4dc91.tar.bz2
llvm-9438d1e3514ab8801e9c488d9723241af7f4dc91.tar.xz
Stack Coloring: Debug prints to print the slot number and not the array index.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163509 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/StackColoring.cpp')
-rw-r--r--lib/CodeGen/StackColoring.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/StackColoring.cpp b/lib/CodeGen/StackColoring.cpp
index 45c9af21bb..10ebe5126e 100644
--- a/lib/CodeGen/StackColoring.cpp
+++ b/lib/CodeGen/StackColoring.cpp
@@ -646,7 +646,8 @@ bool StackColoring::runOnMachineFunction(MachineFunction &Func) {
First->MergeRangesInAsValue(*Second, First->getValNumInfo(0));
SlotRemap[SecondSlot] = FirstSlot;
SortedSlots[J] = -1;
- DEBUG(dbgs()<<"Merging #"<<I<<" and slots #"<<J<<" together.\n");
+ DEBUG(dbgs()<<"Merging #"<<FirstSlot<<" and slots #"<<
+ SecondSlot<<" together.\n");
unsigned MaxAlignment = std::max(MFI->getObjectAlignment(FirstSlot),
MFI->getObjectAlignment(SecondSlot));