Add OpDecorate

This commit is contained in:
ReinUsesLisp 2018-10-23 04:45:56 -03:00
parent 54cc7d06ce
commit 1458bd2c1c
6 changed files with 49 additions and 4 deletions

View file

@ -77,6 +77,12 @@ void Op::Add(const std::vector<Ref>& ids) {
}
}
void Op::Add(const std::vector<Operand*>& operands) {
for (Operand* operand : operands) {
Add(operand);
}
}
u16 Op::WordCount() const {
u16 count{1};
if (result_type) {