Track export data on Guest Functions

This commit is contained in:
Dr. Chat
2015-11-28 13:55:14 -06:00
committed by Ben Vanik
parent 42c657c40a
commit db8eb83057
3 changed files with 10 additions and 3 deletions

View File

@@ -60,9 +60,10 @@ GuestFunction::GuestFunction(Module* module, uint32_t address)
GuestFunction::~GuestFunction() = default;
void GuestFunction::SetupExtern(ExternHandler handler) {
void GuestFunction::SetupExtern(ExternHandler handler, Export* export_data) {
behavior_ = Behavior::kExtern;
extern_handler_ = handler;
export_data_ = export_data;
}
const SourceMapEntry* GuestFunction::LookupGuestAddress(