aboutsummaryrefslogtreecommitdiffstats
path: root/lib/VMCore
diff options
context:
space:
mode:
Diffstat (limited to 'lib/VMCore')
-rw-r--r--lib/VMCore/Attributes.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/VMCore/Attributes.cpp b/lib/VMCore/Attributes.cpp
index 5f4b51f..4f3200b 100644
--- a/lib/VMCore/Attributes.cpp
+++ b/lib/VMCore/Attributes.cpp
@@ -215,6 +215,11 @@ addAttribute(Attributes::AttrVal Val) {
return *this;
}
+Attributes::Builder &Attributes::Builder::addRawValue(uint64_t Val) {
+ Bits |= Val;
+ return *this;
+}
+
Attributes::Builder &Attributes::Builder::addAlignmentAttr(unsigned Align) {
if (Align == 0) return *this;
assert(isPowerOf2_32(Align) && "Alignment must be a power of two.");