From: Bill Wendling Date: Thu, 27 Sep 2012 07:22:30 +0000 (+0000) Subject: Add constructors to the attribute builder. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=37d3ef3140f542f320b3c46a3dfc366cfa479754;p=oota-llvm.git Add constructors to the attribute builder. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164762 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Attributes.h b/include/llvm/Attributes.h index d36e10d6589..e34881842aa 100644 --- a/include/llvm/Attributes.h +++ b/include/llvm/Attributes.h @@ -154,6 +154,9 @@ public: friend class Attributes; uint64_t Bits; public: + Builder() : Bits(0) {} + Builder(const Attributes &A) : Bits(A.Bits) {} + void addZExtAttr() { Bits |= Attribute::ZExt_i; }