projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4533b4a
)
[Bitstream] Add BitCodeAbbrev(std::initializer_list) constructor
author
Jan Korous
<jkorous@apple.com>
Thu, 5 Sep 2019 21:26:53 +0000
(21:26 +0000)
committer
Jan Korous
<jkorous@apple.com>
Thu, 5 Sep 2019 21:26:53 +0000
(21:26 +0000)
llvm-svn: 371128
llvm/include/llvm/Bitstream/BitCodes.h
patch
|
blob
|
history
diff --git
a/llvm/include/llvm/Bitstream/BitCodes.h
b/llvm/include/llvm/Bitstream/BitCodes.h
index
adf54ba
..
41a3de3
100644
(file)
--- a/
llvm/include/llvm/Bitstream/BitCodes.h
+++ b/
llvm/include/llvm/Bitstream/BitCodes.h
@@
-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());
}