diff options
author | Bill Wendling <isanbard@gmail.com> | 2013-01-27 23:53:56 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2013-01-27 23:53:56 +0000 |
commit | 49716e5d84142d7bd3eeff7304f9bc708bff99d0 (patch) | |
tree | 133c6999551b7a0d856215fce5a19358d7154a92 /lib/IR | |
parent | 3e3e789aede6ec38d39c95d88ad4e8634d5a259b (diff) | |
download | external_llvm-49716e5d84142d7bd3eeff7304f9bc708bff99d0.zip external_llvm-49716e5d84142d7bd3eeff7304f9bc708bff99d0.tar.gz external_llvm-49716e5d84142d7bd3eeff7304f9bc708bff99d0.tar.bz2 |
Improve the debug output a bit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173640 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/IR')
-rw-r--r-- | lib/IR/Attributes.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/IR/Attributes.cpp b/lib/IR/Attributes.cpp index 8e64a49..361f3d6 100644 --- a/lib/IR/Attributes.cpp +++ b/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"; |