projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ff715b2
)
Use the AttributeSet instead of AttributeWithIndex object.
author
Bill Wendling
<isanbard@gmail.com>
Sun, 27 Jan 2013 00:36:48 +0000
(
00:36
+0000)
committer
Bill Wendling
<isanbard@gmail.com>
Sun, 27 Jan 2013 00:36:48 +0000
(
00:36
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173598
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Bitcode/Reader/BitcodeReader.cpp
patch
|
blob
|
history
diff --git
a/lib/Bitcode/Reader/BitcodeReader.cpp
b/lib/Bitcode/Reader/BitcodeReader.cpp
index 4190161b62e8eb464990dbb162b1076e4b3e4e14..2e1a5125fe96317394098de7bbd13c8d41d5181a 100644
(file)
--- a/
lib/Bitcode/Reader/BitcodeReader.cpp
+++ b/
lib/Bitcode/Reader/BitcodeReader.cpp
@@
-437,7
+437,7
@@
bool BitcodeReader::ParseAttributeBlock() {
SmallVector<uint64_t, 64> Record;
- SmallVector<Attribute
WithIndex
, 8> Attrs;
+ SmallVector<Attribute
Set
, 8> Attrs;
// Read all the records.
while (1) {
@@
-472,8
+472,7
@@
bool BitcodeReader::ParseAttributeBlock() {
for (unsigned i = 0, e = Record.size(); i != e; i += 2) {
AttrBuilder B(Record[i+1]);
if (B.hasAttributes())
- Attrs.push_back(AttributeWithIndex::get(Record[i],
- Attribute::get(Context, B)));
+ Attrs.push_back(AttributeSet::get(Context, Record[i], B));
}
MAttributes.push_back(AttributeSet::get(Context, Attrs));