mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
[ewasm] Support compiling data subobjects
This commit is contained in:
@@ -51,8 +51,10 @@ wasm::Module WasmObjectCompiler::run(Object& _object)
|
||||
for (auto& subNode: _object.subObjects)
|
||||
if (Object* subObject = dynamic_cast<Object*>(subNode.get()))
|
||||
module.subModules[subObject->name.str()] = run(*subObject);
|
||||
else if (Data* subObject = dynamic_cast<Data*>(subNode.get()))
|
||||
module.customSections[subObject->name.str()] = subObject->data;
|
||||
else
|
||||
yulAssert(false, "Data is not yet supported for Wasm.");
|
||||
yulAssert(false, "");
|
||||
|
||||
return module;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user