forked from OSchip/llvm-project
parent
67ffb338ee
commit
5d020a3a31
|
@ -286,6 +286,9 @@ public:
|
|||
// AttributeSet Accessors
|
||||
//===--------------------------------------------------------------------===//
|
||||
|
||||
/// \brief Retrieve the LLVM context.
|
||||
LLVMContext &getContext() const;
|
||||
|
||||
/// \brief The attributes for the specified index are returned.
|
||||
AttributeSet getParamAttributes(unsigned Idx) const;
|
||||
|
||||
|
|
|
@ -709,6 +709,10 @@ AttributeSet AttributeSet::removeAttributes(LLVMContext &C, unsigned Idx,
|
|||
// AttributeSet Accessor Methods
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
LLVMContext &AttributeSet::getContext() const {
|
||||
return pImpl->getContext();
|
||||
}
|
||||
|
||||
AttributeSet AttributeSet::getParamAttributes(unsigned Idx) const {
|
||||
return pImpl && hasAttributes(Idx) ?
|
||||
AttributeSet::get(pImpl->getContext(),
|
||||
|
|
Loading…
Reference in New Issue