mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-07 12:28:24 +00:00
Make the AttrBuilder creation method of Attribute private so that people won't use it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174023 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -105,6 +105,8 @@ public:
|
|||||||
private:
|
private:
|
||||||
AttributeImpl *pImpl;
|
AttributeImpl *pImpl;
|
||||||
Attribute(AttributeImpl *A) : pImpl(A) {}
|
Attribute(AttributeImpl *A) : pImpl(A) {}
|
||||||
|
|
||||||
|
static Attribute get(LLVMContext &Context, AttrBuilder &B);
|
||||||
public:
|
public:
|
||||||
Attribute() : pImpl(0) {}
|
Attribute() : pImpl(0) {}
|
||||||
|
|
||||||
@@ -114,7 +116,6 @@ public:
|
|||||||
|
|
||||||
/// \brief Return a uniquified Attribute object.
|
/// \brief Return a uniquified Attribute object.
|
||||||
static Attribute get(LLVMContext &Context, AttrKind Kind);
|
static Attribute get(LLVMContext &Context, AttrKind Kind);
|
||||||
static Attribute get(LLVMContext &Context, AttrBuilder &B);
|
|
||||||
|
|
||||||
/// \brief Return a uniquified Attribute object that has the specific
|
/// \brief Return a uniquified Attribute object that has the specific
|
||||||
/// alignment set.
|
/// alignment set.
|
||||||
|
@@ -745,7 +745,9 @@ void Verifier::VerifyFunctionAttrs(FunctionType *FT,
|
|||||||
AttrBuilder NotFn(Attrs, AttributeSet::FunctionIndex);
|
AttrBuilder NotFn(Attrs, AttributeSet::FunctionIndex);
|
||||||
NotFn.removeFunctionOnlyAttrs();
|
NotFn.removeFunctionOnlyAttrs();
|
||||||
Assert1(!NotFn.hasAttributes(), "Attribute '" +
|
Assert1(!NotFn.hasAttributes(), "Attribute '" +
|
||||||
Attribute::get(V->getContext(), NotFn).getAsString() +
|
AttributeSet::get(V->getContext(),
|
||||||
|
AttributeSet::FunctionIndex,
|
||||||
|
NotFn).getAsString(AttributeSet::FunctionIndex) +
|
||||||
"' do not apply to the function!", V);
|
"' do not apply to the function!", V);
|
||||||
|
|
||||||
// Check for mutually incompatible attributes.
|
// Check for mutually incompatible attributes.
|
||||||
|
Reference in New Issue
Block a user