[llvm-commits] [llvm] r164762 - /llvm/trunk/include/llvm/Attributes.h
Bill Wendling
isanbard at gmail.com
Thu Sep 27 00:22:30 PDT 2012
Author: void
Date: Thu Sep 27 02:22:30 2012
New Revision: 164762
URL: http://llvm.org/viewvc/llvm-project?rev=164762&view=rev
Log:
Add constructors to the attribute builder.
Modified:
llvm/trunk/include/llvm/Attributes.h
Modified: llvm/trunk/include/llvm/Attributes.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Attributes.h?rev=164762&r1=164761&r2=164762&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Attributes.h (original)
+++ llvm/trunk/include/llvm/Attributes.h Thu Sep 27 02:22:30 2012
@@ -154,6 +154,9 @@
friend class Attributes;
uint64_t Bits;
public:
+ Builder() : Bits(0) {}
+ Builder(const Attributes &A) : Bits(A.Bits) {}
+
void addZExtAttr() {
Bits |= Attribute::ZExt_i;
}
More information about the llvm-commits
mailing list