mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
Use the appropriate Attributes::get method to create an Attributes object.
llvm-svn: 166035
This commit is contained in:
parent
38e04ae4a0
commit
da7701b08b
@ -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…
x
Reference in New Issue
Block a user