summaryrefslogtreecommitdiff
path: root/lib/VMCore
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-10-14 04:10:01 +0000
committerBill Wendling <isanbard@gmail.com>2012-10-14 04:10:01 +0000
commita19a53065fcaa6fafce902efde38fcae7b0bdea4 (patch)
treef29295c60f996690e088112664d7474ee99596f2 /lib/VMCore
parentda3f9d8edc5b3e0a3e0b94257c63e24215a85653 (diff)
downloadllvm-a19a53065fcaa6fafce902efde38fcae7b0bdea4.tar.gz
llvm-a19a53065fcaa6fafce902efde38fcae7b0bdea4.tar.bz2
llvm-a19a53065fcaa6fafce902efde38fcae7b0bdea4.tar.xz
Decode the LLVM attributes from bitcode using the attributes builder.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165891 91177308-0d34-0410-b5e6-96231b3b80d8
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 5f4b51fc6b..4f3200b002 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.");