From a19a53065fcaa6fafce902efde38fcae7b0bdea4 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Sun, 14 Oct 2012 04:10:01 +0000 Subject: 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 --- lib/VMCore/Attributes.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/VMCore') 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."); -- cgit v1.1