summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2013-01-27 23:53:56 +0000
committerBill Wendling <isanbard@gmail.com>2013-01-27 23:53:56 +0000
commitad6217c76f37bf6333bf6a5b35c241bc8e004a79 (patch)
tree3f01e3cd5f9686299633df3c25def45e6694c332
parent3217eb652b5d377a7257d78e16e988c48a1b71c2 (diff)
downloadbcm5719-llvm-ad6217c76f37bf6333bf6a5b35c241bc8e004a79.tar.gz
bcm5719-llvm-ad6217c76f37bf6333bf6a5b35c241bc8e004a79.zip
Improve the debug output a bit.
llvm-svn: 173640
-rw-r--r--llvm/lib/IR/Attributes.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/llvm/lib/IR/Attributes.cpp b/llvm/lib/IR/Attributes.cpp
index 8e64a49c47a..361f3d6c8cc 100644
--- a/llvm/lib/IR/Attributes.cpp
+++ b/llvm/lib/IR/Attributes.cpp
@@ -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";
OpenPOWER on IntegriCloud