[llvm] r371128 - [Bitstream] Add BitCodeAbbrev(std::initializer_list) constructor
Jan Korous via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 5 14:26:54 PDT 2019
Author: jkorous
Date: Thu Sep 5 14:26:53 2019
New Revision: 371128
URL: http://llvm.org/viewvc/llvm-project?rev=371128&view=rev
Log:
[Bitstream] Add BitCodeAbbrev(std::initializer_list) constructor
Modified:
llvm/trunk/include/llvm/Bitstream/BitCodes.h
Modified: llvm/trunk/include/llvm/Bitstream/BitCodes.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Bitstream/BitCodes.h?rev=371128&r1=371127&r2=371128&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Bitstream/BitCodes.h (original)
+++ llvm/trunk/include/llvm/Bitstream/BitCodes.h Thu Sep 5 14:26:53 2019
@@ -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());
}
More information about the llvm-commits
mailing list