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:
parent
70724cacf6
commit
58428b0bda
@ -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());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user