aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.h
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2013-02-10 23:24:25 +0000
committerBill Wendling <isanbard@gmail.com>2013-02-10 23:24:25 +0000
commitba629335deb6b48f9cc15f6cdc5ee17f3a4a81be (patch)
treeb92d00c9ef9bbeb52a5ade3e92b26edb61557fe6 /llvm/lib/Bitcode/Reader/BitcodeReader.h
parentd746e407046437f5bf20d5d3cb1fbf846a672359 (diff)
downloadllvm-ba629335deb6b48f9cc15f6cdc5ee17f3a4a81be.zip
llvm-ba629335deb6b48f9cc15f6cdc5ee17f3a4a81be.tar.gz
llvm-ba629335deb6b48f9cc15f6cdc5ee17f3a4a81be.tar.bz2
Add support in the bitcode reader to read the attribute groups.
This reads the attribute groups. It currently doesn't do anything with them. NOTE: In the commit to the bitcode writer, the format *may* change in the near future. Which means that this code would also change. llvm-svn: 174849
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.h')
-rw-r--r--llvm/lib/Bitcode/Reader/BitcodeReader.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Bitcode/Reader/BitcodeReader.h b/llvm/lib/Bitcode/Reader/BitcodeReader.h
index 3347418..8d36e67 100644
--- a/llvm/lib/Bitcode/Reader/BitcodeReader.h
+++ b/llvm/lib/Bitcode/Reader/BitcodeReader.h
@@ -148,6 +148,9 @@ class BitcodeReader : public GVMaterializer {
/// are off by one.
std::vector<AttributeSet> MAttributes;
+ /// \brief The set of attribute groups.
+ std::vector<AttributeSet> MAttributeGroups;
+
/// FunctionBBs - While parsing a function body, this is a list of the basic
/// blocks for the function.
std::vector<BasicBlock*> FunctionBBs;
@@ -320,6 +323,7 @@ private:
bool ParseModule(bool Resume);
bool ParseAttributeBlock();
+ bool ParseAttributeGroupBlock();
bool ParseTypeTable();
bool ParseTypeTableBody();