fix(gsc): cleanup (#65)

This commit is contained in:
Xenxo Espasandín 2023-02-12 17:21:58 +01:00 committed by GitHub
parent 9a7bb1fac7
commit adf88fc5c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 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(); header_files_.clear();
include_cache_.clear(); include_cache_.clear();
includes_.clear(); includes_.clear();

View File

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