projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de78bba
)
Use the appropriate Attributes::get method to create an Attributes object.
author
Bill Wendling
<isanbard@gmail.com>
Tue, 16 Oct 2012 18:06:06 +0000
(18:06 +0000)
committer
Bill Wendling
<isanbard@gmail.com>
Tue, 16 Oct 2012 18:06:06 +0000
(18:06 +0000)
llvm-svn: 166035
llvm/include/llvm/Attributes.h
patch
|
blob
|
history
diff --git
a/llvm/include/llvm/Attributes.h
b/llvm/include/llvm/Attributes.h
index
a28aa18
..
4222a62
100644
(file)
--- a/
llvm/include/llvm/Attributes.h
+++ b/
llvm/include/llvm/Attributes.h
@@
-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) {