summaryrefslogtreecommitdiffstats
path: root/llvm/include
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2013-01-29 01:43:29 +0000
committerBill Wendling <isanbard@gmail.com>2013-01-29 01:43:29 +0000
commit60011b8e2703e1bed7add86d00c00edcb5047527 (patch)
treeac27b231f3b84fe528368a36565343c7f7657a3a /llvm/include
parent9a629abf3d9211aaaf96f66b7bf6f2fe99414bc3 (diff)
downloadbcm5719-llvm-60011b8e2703e1bed7add86d00c00edcb5047527.tar.gz
bcm5719-llvm-60011b8e2703e1bed7add86d00c00edcb5047527.zip
Use an AttrBuilder to generate the correct AttributeSet.
We no longer accept an encoded integer as representing all of the attributes. Convert this via the AttrBuilder class into an AttributeSet with the correct representation (an AttributeSetImpl that holds a list of Attribute objects). llvm-svn: 173750
Diffstat (limited to 'llvm/include')
-rw-r--r--llvm/include/llvm/IR/Attributes.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/llvm/include/llvm/IR/Attributes.h b/llvm/include/llvm/IR/Attributes.h
index ba46d205caa..1aa733efbf8 100644
--- a/llvm/include/llvm/IR/Attributes.h
+++ b/llvm/include/llvm/IR/Attributes.h
@@ -461,11 +461,12 @@ Attribute typeIncompatible(Type *Ty);
/// is a breaking change to bitcode compatibility.
uint64_t encodeLLVMAttributesForBitcode(AttributeSet Attrs, unsigned Index);
-/// \brief This returns an attribute bitset containing the LLVM attributes that
-/// have been decoded from the given integer. This function must stay in sync
-/// with 'encodeLLVMAttributesForBitcode'.
-Attribute decodeLLVMAttributesForBitcode(LLVMContext &C,
- uint64_t EncodedAttrs);
+/// \brief This fills an AttrBuilder object with the LLVM attributes that have
+/// been decoded from the given integer. This function must stay in sync with
+/// 'encodeLLVMAttributesForBitcode'.
+/// N.B. This should be used only by the bitcode reader!
+void decodeLLVMAttributesForBitcode(LLVMContext &C, AttrBuilder &B,
+ uint64_t EncodedAttrs);
} // end AttributeFuncs namespace
OpenPOWER on IntegriCloud