From abca2ecaab80ca637b8dc8ae42bb6ed17e5c22ff Mon Sep 17 00:00:00 2001 From: Peter Collingbourne Date: Fri, 2 Aug 2013 22:34:30 +0000 Subject: [PATCH] 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 --- llvm/lib/IR/AttributeImpl.h | 2 ++ llvm/lib/IR/Attributes.cpp | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/llvm/lib/IR/AttributeImpl.h b/llvm/lib/IR/AttributeImpl.h index 7bf9e8a..9da3f96 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 c483467..f466d16 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(this)).dump(); +} + //===----------------------------------------------------------------------===// // AttributeSet Construction and Mutation Methods //===----------------------------------------------------------------------===// -- 2.7.4