aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-09-27 07:22:30 +0000
committerBill Wendling <isanbard@gmail.com>2012-09-27 07:22:30 +0000
commit37d3ef3140f542f320b3c46a3dfc366cfa479754 (patch)
treeea6ba609deafd8cca8ae0eb7c802060297adb00f
parente2d02349c3a864a825f3152ac5b7999594a0952f (diff)
Add constructors to the attribute builder.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164762 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Attributes.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/Attributes.h b/include/llvm/Attributes.h
index d36e10d658..e34881842a 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;
}