Put simple c'tors inline.
authorBill Wendling <isanbard@gmail.com>
Tue, 16 Oct 2012 05:22:28 +0000 (05:22 +0000)
committerBill Wendling <isanbard@gmail.com>
Tue, 16 Oct 2012 05:22:28 +0000 (05:22 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166008 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Attributes.h
lib/VMCore/Attributes.cpp

index 72bcca02fff78bfac3b45b803b64f6d56be3a07e..aac5d9ef4a0efef975dab519c22628dd06473362 100644 (file)
@@ -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;
index cfa276ebd66f85af3106bde313d29764e0764f89..f028fd356d67bf3fe34e208cda2243e149b2862f 100644 (file)
@@ -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;
 }