From 37d3ef3140f542f320b3c46a3dfc366cfa479754 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Thu, 27 Sep 2012 07:22:30 +0000 Subject: [PATCH] Add constructors to the attribute builder. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164762 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Attributes.h | 3 +++ 1 file changed, 3 insertions(+) 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; } -- 2.34.1