[llvm] r187685 - Add a AttributeSetImpl::dump function.
Peter Collingbourne
peter at pcc.me.uk
Fri Aug 2 15:34:30 PDT 2013
Author: pcc
Date: Fri Aug 2 17:34:30 2013
New Revision: 187685
URL: http://llvm.org/viewvc/llvm-project?rev=187685&view=rev
Log:
Add a AttributeSetImpl::dump function.
This is for the benefit of those of us with inferior debuggers which
do not permit member function calls on value types.
Modified:
llvm/trunk/lib/IR/AttributeImpl.h
llvm/trunk/lib/IR/Attributes.cpp
Modified: llvm/trunk/lib/IR/AttributeImpl.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/AttributeImpl.h?rev=187685&r1=187684&r2=187685&view=diff
==============================================================================
--- llvm/trunk/lib/IR/AttributeImpl.h (original)
+++ llvm/trunk/lib/IR/AttributeImpl.h Fri Aug 2 17:34:30 2013
@@ -258,6 +258,8 @@ public:
// FIXME: This atrocity is temporary.
uint64_t Raw(unsigned Index) const;
+
+ void dump() const;
};
} // end llvm namespace
Modified: llvm/trunk/lib/IR/Attributes.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/Attributes.cpp?rev=187685&r1=187684&r2=187685&view=diff
==============================================================================
--- llvm/trunk/lib/IR/Attributes.cpp (original)
+++ llvm/trunk/lib/IR/Attributes.cpp Fri Aug 2 17:34:30 2013
@@ -508,6 +508,10 @@ uint64_t AttributeSetImpl::Raw(unsigned
return 0;
}
+void AttributeSetImpl::dump() const {
+ AttributeSet(const_cast<AttributeSetImpl *>(this)).dump();
+}
+
//===----------------------------------------------------------------------===//
// AttributeSet Construction and Mutation Methods
//===----------------------------------------------------------------------===//
More information about the llvm-commits
mailing list