aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Attributes.h
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 /include/llvm/Attributes.h
parente2d02349c3a864a825f3152ac5b7999594a0952f (diff)
downloadexternal_llvm-37d3ef3140f542f320b3c46a3dfc366cfa479754.zip
external_llvm-37d3ef3140f542f320b3c46a3dfc366cfa479754.tar.gz
external_llvm-37d3ef3140f542f320b3c46a3dfc366cfa479754.tar.bz2
Add constructors to the attribute builder.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164762 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Attributes.h')
-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 d36e10d..e348818 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;
}