git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166008
91177308-0d34-0410-b5e6-
96231b3b80d8
};
private:
AttributesImpl *Attrs;
};
private:
AttributesImpl *Attrs;
- Attributes(AttributesImpl *A);
+ Attributes(AttributesImpl *A) : Attrs(A) {}
public:
Attributes() : Attrs(0) {}
public:
Attributes() : Attrs(0) {}
- Attributes(const Attributes &A);
+ Attributes(const Attributes &A) : Attrs(A.Attrs) {}
Attributes &operator=(const Attributes &A) {
Attrs = A.Attrs;
return *this;
Attributes &operator=(const Attributes &A) {
Attrs = A.Attrs;
return *this;
// Attributes Implementation
//===----------------------------------------------------------------------===//
// Attributes Implementation
//===----------------------------------------------------------------------===//
-Attributes::Attributes(AttributesImpl *A) : Attrs(A) {}
-
-Attributes::Attributes(const Attributes &A) : Attrs(A.Attrs) {}
-
Attributes Attributes::get(LLVMContext &Context, ArrayRef<AttrVal> Vals) {
AttrBuilder B;
for (ArrayRef<AttrVal>::iterator I = Vals.begin(), E = Vals.end();
Attributes Attributes::get(LLVMContext &Context, ArrayRef<AttrVal> Vals) {
AttrBuilder B;
for (ArrayRef<AttrVal>::iterator I = Vals.begin(), E = Vals.end();
-AttrBuilder &AttrBuilder::
-removeAttribute(Attributes::AttrVal Val) {
+AttrBuilder &AttrBuilder::removeAttribute(Attributes::AttrVal Val) {
Bits &= ~AttributesImpl::getAttrMask(Val);
return *this;
}
Bits &= ~AttributesImpl::getAttrMask(Val);
return *this;
}