mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-20 19:55:46 +00:00
glasm: Make GLASM aware of types
This commit is contained in:
parent
94ee083286
commit
04ed27a997
12 changed files with 1396 additions and 1260 deletions
|
@ -23,15 +23,15 @@ public:
|
|||
explicit EmitContext(IR::Program& program);
|
||||
|
||||
template <typename... Args>
|
||||
void Add(const char* fmt, IR::Inst& inst, Args&&... args) {
|
||||
code += fmt::format(fmt, reg_alloc.Define(inst), std::forward<Args>(args)...);
|
||||
void Add(const char* format_str, IR::Inst& inst, Args&&... args) {
|
||||
code += fmt::format(format_str, reg_alloc.Define(inst), std::forward<Args>(args)...);
|
||||
// TODO: Remove this
|
||||
code += '\n';
|
||||
}
|
||||
|
||||
template <typename... Args>
|
||||
void Add(const char* fmt, Args&&... args) {
|
||||
code += fmt::format(fmt, std::forward<Args>(args)...);
|
||||
void Add(const char* format_str, Args&&... args) {
|
||||
code += fmt::format(format_str, std::forward<Args>(args)...);
|
||||
// TODO: Remove this
|
||||
code += '\n';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue