forked from OSchip/llvm-project
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
This commit is contained in:
parent
3bfc35e26a
commit
abca2ecaab
|
@ -258,6 +258,8 @@ public:
|
|||
|
||||
// FIXME: This atrocity is temporary.
|
||||
uint64_t Raw(unsigned Index) const;
|
||||
|
||||
void dump() const;
|
||||
};
|
||||
|
||||
} // end llvm namespace
|
||||
|
|
|
@ -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
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
|
Loading…
Reference in New Issue