Improve the debug output a bit.
authorBill Wendling <isanbard@gmail.com>
Sun, 27 Jan 2013 23:53:56 +0000 (23:53 +0000)
committerBill Wendling <isanbard@gmail.com>
Sun, 27 Jan 2013 23:53:56 +0000 (23:53 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173640 91177308-0d34-0410-b5e6-96231b3b80d8

lib/IR/Attributes.cpp

index 8e64a49c47a6a7cddc4a66139821cc84e7a85925..361f3d6c8cc4849036b35d13237200960415de1b 100644 (file)
@@ -863,8 +863,13 @@ AttributeSet AttributeSet::removeAttr(LLVMContext &C, unsigned Idx,
 void AttributeSet::dump() const {
   dbgs() << "PAL[ ";
   for (unsigned i = 0; i < getNumSlots(); ++i) {
-    unsigned Index = getSlotIndex(i);
-    dbgs() << "{ " << Index << " => " << getAsString(Index) << " } ";
+    uint64_t Index = getSlotIndex(i);
+    dbgs() << "  { ";
+    if (Index == ~0U)
+      dbgs() << "~0U";
+    else
+      dbgs() << Index;
+    dbgs() << " => " << getAsString(Index) << " }\n";
   }
 
   dbgs() << "]\n";