[llvm-commits] [llvm] r173640 - Improve the debug output a bit.

Bill Wendling isanbard at gmail.com
Sun Jan 27 15:53:56 PST 2013


Author: void
Date: Sun Jan 27 17:53:56 2013
New Revision: 173640

URL: http://llvm.org/viewvc/llvm-project?rev=173640&view=rev
Log:
Improve the debug output a bit.

Modified:
    llvm/trunk/lib/IR/Attributes.cpp

Modified: llvm/trunk/lib/IR/Attributes.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/Attributes.cpp?rev=173640&r1=173639&r2=173640&view=diff
==============================================================================
--- llvm/trunk/lib/IR/Attributes.cpp (original)
+++ llvm/trunk/lib/IR/Attributes.cpp Sun Jan 27 17:53:56 2013
@@ -863,8 +863,13 @@ AttributeSet AttributeSet::removeAttr(LL
 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";





More information about the llvm-commits mailing list