summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bitcode
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2017-04-24 22:25:02 +0000
committerReid Kleckner <rnk@google.com>2017-04-24 22:25:02 +0000
commit63b26f0eeadc411ce877bfe340f5fac128397f5f (patch)
tree659d28f96c53cde43a3d37ab34f1d5071de3928a /llvm/lib/Bitcode
parent729377f06303485eea7c2e031af4eb7f13c0cb96 (diff)
downloadbcm5719-llvm-63b26f0eeadc411ce877bfe340f5fac128397f5f.tar.gz
bcm5719-llvm-63b26f0eeadc411ce877bfe340f5fac128397f5f.zip
Make getSlotAttributes return an AttributeSet instead of a wrapper list
Remove the temporary, poorly named getSlotSet method which did the same thing. Also remove getSlotNode, which is a hold-over from when we were dealing with AttributeSetNode* instead of AttributeSet. llvm-svn: 301267
Diffstat (limited to 'llvm/lib/Bitcode')
-rw-r--r--llvm/lib/Bitcode/Writer/BitcodeWriter.cpp2
-rw-r--r--llvm/lib/Bitcode/Writer/ValueEnumerator.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
index bb016e43cfe..e5aba03c8dc 100644
--- a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
+++ b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
@@ -779,7 +779,7 @@ void ModuleBitcodeWriter::writeAttributeTable() {
const AttributeList &A = Attrs[i];
for (unsigned i = 0, e = A.getNumSlots(); i != e; ++i)
Record.push_back(
- VE.getAttributeGroupID({A.getSlotIndex(i), A.getSlotSet(i)}));
+ VE.getAttributeGroupID({A.getSlotIndex(i), A.getSlotAttributes(i)}));
Stream.EmitRecord(bitc::PARAMATTR_CODE_ENTRY, Record);
Record.clear();
diff --git a/llvm/lib/Bitcode/Writer/ValueEnumerator.cpp b/llvm/lib/Bitcode/Writer/ValueEnumerator.cpp
index c6f80f0a251..86115076698 100644
--- a/llvm/lib/Bitcode/Writer/ValueEnumerator.cpp
+++ b/llvm/lib/Bitcode/Writer/ValueEnumerator.cpp
@@ -900,7 +900,7 @@ void ValueEnumerator::EnumerateAttributes(AttributeList PAL) {
// Do lookups for all attribute groups.
for (unsigned i = 0, e = PAL.getNumSlots(); i != e; ++i) {
- IndexAndAttrSet Pair = {PAL.getSlotIndex(i), PAL.getSlotSet(i)};
+ IndexAndAttrSet Pair = {PAL.getSlotIndex(i), PAL.getSlotAttributes(i)};
unsigned &Entry = AttributeGroupMap[Pair];
if (Entry == 0) {
AttributeGroups.push_back(Pair);
OpenPOWER on IntegriCloud