projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e2d0234
)
Add constructors to the attribute builder.
author
Bill Wendling
<isanbard@gmail.com>
Thu, 27 Sep 2012 07:22:30 +0000
(07:22 +0000)
committer
Bill Wendling
<isanbard@gmail.com>
Thu, 27 Sep 2012 07:22:30 +0000
(07:22 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164762
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/Attributes.h
patch
|
blob
|
history
diff --git
a/include/llvm/Attributes.h
b/include/llvm/Attributes.h
index d36e10d6589e2b5542c40cf219179c143a7f02c0..e34881842aa0e93fd264d7a3ac9c2ecf4680ee40 100644
(file)
--- 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;
}