1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00

[Bitstream] Add BitCodeAbbrev(std::initializer_list) constructor

llvm-svn: 371128
This commit is contained in:
Jan Korous 2019-09-05 21:26:53 +00:00
parent 70724cacf6
commit 58428b0bda

View File

@ -168,6 +168,11 @@ class BitCodeAbbrev {
SmallVector<BitCodeAbbrevOp, 32> OperandList;
public:
BitCodeAbbrev() = default;
explicit BitCodeAbbrev(std::initializer_list<BitCodeAbbrevOp> OperandList)
: OperandList(OperandList) {}
unsigned getNumOperandInfos() const {
return static_cast<unsigned>(OperandList.size());
}