MCPcopy Create free account
hub / github.com/CloverHackyColor/CloverBootloader / main

Function main

BaseTools/Source/C/VfrCompile/VfrCompiler.cpp:907–939  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

905}
906
907int
908main (
909 IN int Argc,
910 IN char **Argv
911 )
912{
913 COMPILER_RUN_STATUS Status;
914
915 SetPrintLevel(WARNING_LOG_LEVEL);
916 CVfrCompiler Compiler(Argc, Argv);
917
918 Compiler.PreProcess();
919 Compiler.Compile();
920 Compiler.AdjustBin();
921 Compiler.GenBinary();
922 Compiler.GenCFile();
923 Compiler.GenRecordListFile ();
924
925 Status = Compiler.RunStatus ();
926 if ((Status == STATUS_DEAD) || (Status == STATUS_FAILED)) {
927 return 2;
928 }
929
930 if (gCBuffer.Buffer != NULL) {
931 delete[] gCBuffer.Buffer;
932 }
933
934 if (gRBuffer.Buffer != NULL) {
935 delete[] gRBuffer.Buffer;
936 }
937
938 return GetUtilityStatus ();
939}
940
941

Callers

nothing calls this directly

Calls 9

SetPrintLevelFunction · 0.85
GetUtilityStatusFunction · 0.85
CompileMethod · 0.80
AdjustBinMethod · 0.80
GenBinaryMethod · 0.80
GenRecordListFileMethod · 0.80
RunStatusMethod · 0.80
PreProcessMethod · 0.45
GenCFileMethod · 0.45

Tested by

no test coverage detected