OSDN Git Service

[Bitcode] Refactor attribute group writing to avoid getSlotAttributes
authorReid Kleckner <rnk@google.com>
Mon, 24 Apr 2017 20:38:30 +0000 (20:38 +0000)
committerReid Kleckner <rnk@google.com>
Mon, 24 Apr 2017 20:38:30 +0000 (20:38 +0000)
commitb680aedb530a270e214aa9f5cb1d85dadf37bb83
tree46f8c4781b67af23575fca6c832a14b57c99f77a
parentd461dcfa0684db5251a7d3cae8d6cff3b45036d3
[Bitcode] Refactor attribute group writing to avoid getSlotAttributes

Summary:
That API creates a temporary AttributeList to carry an index and a
single AttributeSet. We need to carry the index in addition to the set,
because that is how attribute groups are currently encoded.

NFC

Reviewers: pcc

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D32262

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@301245 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/Attributes.h
lib/Bitcode/Writer/BitcodeWriter.cpp
lib/Bitcode/Writer/ValueEnumerator.cpp
lib/Bitcode/Writer/ValueEnumerator.h
lib/IR/Attributes.cpp