diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2013-08-02 22:34:30 +0000 |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2013-08-02 22:34:30 +0000 |
commit | abca2ecaab80ca637b8dc8ae42bb6ed17e5c22ff (patch) | |
tree | cf18fa36260b740fbda97e13fe7fe08764490050 | |
parent | 3bfc35e26a814196dd774abacf9fce80a5abf3ff (diff) | |
download | bcm5719-llvm-abca2ecaab80ca637b8dc8ae42bb6ed17e5c22ff.tar.gz bcm5719-llvm-abca2ecaab80ca637b8dc8ae42bb6ed17e5c22ff.zip |
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.
llvm-svn: 187685
-rw-r--r-- | llvm/lib/IR/AttributeImpl.h | 2 | ||||
-rw-r--r-- | llvm/lib/IR/Attributes.cpp | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/IR/AttributeImpl.h b/llvm/lib/IR/AttributeImpl.h index 7bf9e8ab6ba..9da3f9659e0 100644 --- a/llvm/lib/IR/AttributeImpl.h +++ b/llvm/lib/IR/AttributeImpl.h @@ -258,6 +258,8 @@ public: // FIXME: This atrocity is temporary. uint64_t Raw(unsigned Index) const; + + void dump() const; }; } // end llvm namespace diff --git a/llvm/lib/IR/Attributes.cpp b/llvm/lib/IR/Attributes.cpp index c4834671ac6..f466d167e97 100644 --- a/llvm/lib/IR/Attributes.cpp +++ b/llvm/lib/IR/Attributes.cpp @@ -508,6 +508,10 @@ uint64_t AttributeSetImpl::Raw(unsigned Index) const { return 0; } +void AttributeSetImpl::dump() const { + AttributeSet(const_cast<AttributeSetImpl *>(this)).dump(); +} + //===----------------------------------------------------------------------===// // AttributeSet Construction and Mutation Methods //===----------------------------------------------------------------------===// |