Fix build break

This commit is contained in:
vczh
2023-01-19 01:18:07 -08:00
parent 773f0bc2d4
commit 08fc1a3523
7 changed files with 7 additions and 7 deletions
@@ -34,7 +34,7 @@ int main()
// compile code and get assemblies
List<glr::ParsingError> errors;
workflow::Parser parser;
auto assembly = Compile(parser, codes, errors);
auto assembly = Compile(parser, workflow::analyzer::WfCpuArchitecture::AsExecutable, codes, errors);
CHECK_ERROR(assembly && errors.Count() == 0, L"Please check the 'errors' variable.");
// initialize the assembly
@@ -101,7 +101,7 @@ int main()
// compile code and get assemblies
List<glr::ParsingError> errors;
workflow::Parser parser;
auto assembly = Compile(parser, codes, errors);
auto assembly = Compile(parser, workflow::analyzer::WfCpuArchitecture::AsExecutable, codes, errors);
CHECK_ERROR(assembly && errors.Count() == 0, L"Please check the 'errors' variable.");
// initialize the assembly
@@ -127,7 +127,7 @@ int main()
// compile code and get assemblies
List<glr::ParsingError> errors;
workflow::Parser parser;
auto assembly = Compile(parser, codes, errors);
auto assembly = Compile(parser, workflow::analyzer::WfCpuArchitecture::AsExecutable, codes, errors);
CHECK_ERROR(assembly && errors.Count() == 0, L"Please check the 'errors' variable.");
// initialize the assembly
@@ -166,7 +166,7 @@ int main()
// compile code and get assemblies
List<glr::ParsingError> errors;
workflow::Parser parser;
auto assembly = Compile(parser, codes, errors);
auto assembly = Compile(parser, workflow::analyzer::WfCpuArchitecture::AsExecutable, codes, errors);
CHECK_ERROR(assembly && errors.Count() == 0, L"Please check the 'errors' variable.");
// initialize the assembly
@@ -55,7 +55,7 @@ int wmain(int argc, const wchar_t* argv[])
// WfLexicalScopeManager is required because we produce assembly and C++ code at the same time
List<glr::ParsingError> errors;
workflow::Parser parser;
WfLexicalScopeManager manager(parser);
WfLexicalScopeManager manager(parser, workflow::analyzer::WfCpuArchitecture::AsExecutable);
auto assembly = Compile(&manager, codes, errors);
CHECK_ERROR(assembly && errors.Count() == 0, L"Please check the 'errors' variable.");
@@ -122,7 +122,7 @@ int main()
// compile code and get assemblies
List<glr::ParsingError> errors;
workflow::Parser parser;
auto assembly = Compile(parser, codes, errors);
auto assembly = Compile(parser, workflow::analyzer::WfCpuArchitecture::AsExecutable, codes, errors);
CHECK_ERROR(assembly && errors.Count() == 0, L"Please check the 'errors' variable.");
// initialize the assembly
@@ -40,7 +40,7 @@ void GuiMain()
List<WString> codes;
codes.Add(WorkflowScript);
workflow::Parser workflowParser;
auto assembly = Compile(workflowParser, codes, errors);
auto assembly = Compile(workflowParser, workflow::analyzer::WfCpuArchitecture::AsExecutable, codes, errors);
globalContext = Ptr(new WfRuntimeGlobalContext(assembly));
LoadFunction<void()>(globalContext, L"<initialize>")();
}