Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion jitir.tmpl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1291,6 +1291,10 @@ namespace metajit {
return _section->context().build_poison(type);
}

Symbol* build_symbol(Type type, const std::string& symbol) {
return _section->context().build_symbol(type, symbol);
}

/* ${builder} */

ShlInst* build_shl(Value* a, size_t shift) {
Expand Down Expand Up @@ -2666,7 +2670,7 @@ namespace metajit {
std::string sym_name = get_word();
expect_char(':');
Type type = read_type();
return _builder.section()->context().build_symbol(type, sym_name);
return _builder.build_symbol(type, sym_name);
} else {
return read_const();
}
Expand Down
Loading