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)
llvm-svn: 166008

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

index 72bcca0..aac5d9e 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 cfa276e..f028fd3 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;
 }