fix(gsc): cleanup (#65)

This commit is contained in:
Xenxo Espasandín 2023-02-12 17:21:58 +01:00 committed by GitHub
parent f99a56542a
commit 1c31089351
2 changed files with 2 additions and 7 deletions

View File

@ -33,11 +33,6 @@ auto context::init(gsc::build build, fs_callback callback) -> void
auto context::cleanup() -> void
{
source_ = gsc::source{ this };
assembler_ = gsc::assembler{ this };
disassembler_ = gsc::disassembler{ this };
compiler_ = gsc::compiler{ this };
decompiler_ = gsc::decompiler{ this };
header_files_.clear();
include_cache_.clear();
includes_.clear();

View File

@ -162,7 +162,7 @@ auto source::dump(assembly const& data) -> std::vector<u8>
dump_assembly(data);
return buf_;
return std::move(buf_);
}
auto source::dump(program const& data) -> std::vector<u8>
@ -175,7 +175,7 @@ auto source::dump(program const& data) -> std::vector<u8>
dump_program(data);
return buf_;
return std::move(buf_);
}
auto source::dump_assembly(assembly const& data) -> void