forked from OSchip/llvm-project
[Bitstream] Add BitCodeAbbrev(std::initializer_list) constructor
llvm-svn: 371128
This commit is contained in:
parent
4533b4a3a6
commit
e9a78e992b
|
@ -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