aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-10-16 05:22:28 +0000
committerBill Wendling <isanbard@gmail.com>2012-10-16 05:22:28 +0000
commit76b67df11e5cdb87e954a0ad7d1cd7fd4a502be1 (patch)
treef521670520bd3932d90f525e7789e6315238d8a6
parent847a9c33981d88055bf83c14c341ed3a4db10c85 (diff)
Put simple c'tors inline.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166008 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Attributes.h4
-rw-r--r--lib/VMCore/Attributes.cpp7
2 files changed, 3 insertions, 8 deletions
diff --git a/include/llvm/Attributes.h b/include/llvm/Attributes.h
index 72bcca02ff..aac5d9ef4a 100644
--- a/include/llvm/Attributes.h
+++ b/include/llvm/Attributes.h
@@ -88,10 +88,10 @@ public:
};
private:
AttributesImpl *Attrs;
- Attributes(AttributesImpl *A);
+ Attributes(AttributesImpl *A) : Attrs(A) {}
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;
diff --git a/lib/VMCore/Attributes.cpp b/lib/VMCore/Attributes.cpp
index cfa276ebd6..f028fd356d 100644
--- a/lib/VMCore/Attributes.cpp
+++ b/lib/VMCore/Attributes.cpp
@@ -28,10 +28,6 @@ using namespace llvm;
// 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();
@@ -250,8 +246,7 @@ AttrBuilder &AttrBuilder::addStackAlignmentAttr(unsigned Align){
return *this;
}
-AttrBuilder &AttrBuilder::
-removeAttribute(Attributes::AttrVal Val) {
+AttrBuilder &AttrBuilder::removeAttribute(Attributes::AttrVal Val) {
Bits &= ~AttributesImpl::getAttrMask(Val);
return *this;
}