mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-10 04:33:40 +00:00
And now we can call the other 'get' method from this one and not duplicate the code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166037 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
bedcbd433d
commit
79b319d355
@ -290,10 +290,7 @@ struct AttributeWithIndex {
|
|||||||
|
|
||||||
static AttributeWithIndex get(LLVMContext &C, unsigned Idx,
|
static AttributeWithIndex get(LLVMContext &C, unsigned Idx,
|
||||||
ArrayRef<Attributes::AttrVal> Attrs) {
|
ArrayRef<Attributes::AttrVal> Attrs) {
|
||||||
AttributeWithIndex P;
|
return get(Idx, Attributes::get(C, Attrs));
|
||||||
P.Index = Idx;
|
|
||||||
P.Attrs = Attributes::get(C, Attrs);
|
|
||||||
return P;
|
|
||||||
}
|
}
|
||||||
static AttributeWithIndex get(unsigned Idx, Attributes Attrs) {
|
static AttributeWithIndex get(unsigned Idx, Attributes Attrs) {
|
||||||
AttributeWithIndex P;
|
AttributeWithIndex P;
|
||||||
@ -318,8 +315,8 @@ public:
|
|||||||
FunctionIndex = ~0U
|
FunctionIndex = ~0U
|
||||||
};
|
};
|
||||||
private:
|
private:
|
||||||
/// AttrList - The attributes that we are managing. This can be null
|
/// AttrList - The attributes that we are managing. This can be null to
|
||||||
/// to represent the empty attributes list.
|
/// represent the empty attributes list.
|
||||||
AttributeListImpl *AttrList;
|
AttributeListImpl *AttrList;
|
||||||
public:
|
public:
|
||||||
AttrListPtr() : AttrList(0) {}
|
AttrListPtr() : AttrList(0) {}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user