提交 20853c52 编写于 作者: B Bart Wyatt

fix whitespace

上级 9c81d79b
......@@ -188,8 +188,8 @@ public:
void addCall(Module& module, Serialization::OutputStream& inByteStream)
{
// make sure the import is added
addImport(module);
// make sure the import is added
addImport(module);
OpcodeAndImm<CallImm>* encodedOperator = (OpcodeAndImm<CallImm>*)inByteStream.advance(sizeof(OpcodeAndImm<CallImm>));
encodedOperator->opcode = Opcode::call;
// checktime will be the last defined import
......@@ -219,14 +219,14 @@ public:
void addImport(Module& module)
{
if (module.functions.imports.size() == 0 || module.functions.imports.back().exportName.compare(u8"checktime") != 0) {
if (typeSlot < 0) {
addTypeSlot(module);
}
if (module.functions.imports.size() == 0 || module.functions.imports.back().exportName.compare(u8"checktime") != 0) {
if (typeSlot < 0) {
addTypeSlot(module);
}
const U32 functionTypeIndex = typeSlot;
module.functions.imports.push_back({{functionTypeIndex}, std::move(u8"env"), std::move(u8"checktime")});
}
const U32 functionTypeIndex = typeSlot;
module.functions.imports.push_back({{functionTypeIndex}, std::move(u8"env"), std::move(u8"checktime")});
}
}
void conditionallyAddCall(Opcode opcode, const ControlStructureImm& imm, Module& module, Serialization::OutputStream& inByteStream)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册