mirror of
https://git.suyu.dev/suyu/sirit.git
synced 2025-12-26 01:06:40 +01:00
Add Op* prefix to instructions that have to be emited
This commit is contained in:
parent
ba3a3a74d7
commit
a08aeec982
15 changed files with 149 additions and 144 deletions
|
|
@ -7,8 +7,8 @@
|
|||
#include <cassert>
|
||||
|
||||
#include "common_types.h"
|
||||
#include "literal-number.h"
|
||||
#include "literal-string.h"
|
||||
#include "literal_number.h"
|
||||
#include "literal_string.h"
|
||||
#include "op.h"
|
||||
#include "operand.h"
|
||||
|
||||
|
|
@ -88,6 +88,7 @@ void Op::Add(const Literal& literal) {
|
|||
return LiteralNumber::Create(std::get<5>(literal));
|
||||
default:
|
||||
assert(!"invalid literal type");
|
||||
abort();
|
||||
}
|
||||
}();
|
||||
Sink(operand);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue