mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-26 07:29:55 +00:00
Use the appropriate Attributes::get method to create an Attributes object.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166035 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
82e9bc2f57
commit
e6c994149a
@ -290,15 +290,9 @@ struct AttributeWithIndex {
|
||||
|
||||
static AttributeWithIndex get(LLVMContext &C, unsigned Idx,
|
||||
ArrayRef<Attributes::AttrVal> Attrs) {
|
||||
AttrBuilder B;
|
||||
|
||||
for (ArrayRef<Attributes::AttrVal>::iterator I = Attrs.begin(),
|
||||
E = Attrs.end(); I != E; ++I)
|
||||
B.addAttribute(*I);
|
||||
|
||||
AttributeWithIndex P;
|
||||
P.Index = Idx;
|
||||
P.Attrs = Attributes::get(C, B);
|
||||
P.Attrs = Attributes::get(C, Attrs);
|
||||
return P;
|
||||
}
|
||||
static AttributeWithIndex get(unsigned Idx, Attributes Attrs) {
|
||||
|
Loading…
Reference in New Issue
Block a user