fix: correct typos and improve comments across multiple files by codespell (#4116)
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
This commit is contained in:
@ -48,22 +48,22 @@ AoTFile::ParseTargetInfo()
|
||||
CHECK_RESULT(ReadT(&abi_type, this, "uint16_t"));
|
||||
target_info_.abi_type = abi_type;
|
||||
|
||||
// exectuion type
|
||||
// execution type
|
||||
uint16_t e_type = 0;
|
||||
CHECK_RESULT(ReadT(&e_type, this, "uint16_t"));
|
||||
target_info_.e_type = e_type;
|
||||
|
||||
// exectuion machine
|
||||
// execution machine
|
||||
uint16_t e_machine = 0;
|
||||
CHECK_RESULT(ReadT(&e_machine, this, "uint16_t"));
|
||||
target_info_.e_machine = e_machine;
|
||||
|
||||
// exectuion version
|
||||
// execution version
|
||||
uint32_t e_version = 0;
|
||||
CHECK_RESULT(ReadT(&e_version, this, "uint32_t"));
|
||||
target_info_.e_version = e_version;
|
||||
|
||||
// exectuion flags
|
||||
// execution flags
|
||||
uint32_t e_flags = 0;
|
||||
CHECK_RESULT(ReadT(&e_flags, this, "uint32_t"));
|
||||
target_info_.e_flags = e_flags;
|
||||
@ -165,7 +165,7 @@ AoTFile::GetExectuionTypeName(uint16_t e_type)
|
||||
break;
|
||||
}
|
||||
default:
|
||||
name = "bad exectuion type";
|
||||
name = "bad execution type";
|
||||
}
|
||||
return name;
|
||||
}
|
||||
@ -251,7 +251,7 @@ AoTFile::GetExectuionMachineName(uint16_t e_machine)
|
||||
break;
|
||||
}
|
||||
default:
|
||||
machine = "bad exectuion machine type";
|
||||
machine = "bad execution machine type";
|
||||
}
|
||||
return machine;
|
||||
}
|
||||
|
||||
@ -163,12 +163,12 @@ DumpInfo(AoTFile *aot)
|
||||
printf("Binary type: %s\n",
|
||||
aot->GetBinTypeName(target_info.bin_type).c_str());
|
||||
printf("ABI type: %d\n", target_info.abi_type);
|
||||
printf("Exectuion type: %s\n",
|
||||
printf("Execution type: %s\n",
|
||||
aot->GetExectuionTypeName(target_info.e_type).c_str());
|
||||
printf("Exectuion machine: %s\n",
|
||||
printf("Execution machine: %s\n",
|
||||
aot->GetExectuionMachineName(target_info.e_machine).c_str());
|
||||
printf("Exectuion version: %u\n", target_info.e_version);
|
||||
printf("Exectuion flags: %u\n", target_info.e_flags);
|
||||
printf("Execution version: %u\n", target_info.e_version);
|
||||
printf("Execution flags: %u\n", target_info.e_flags);
|
||||
printf("Feature flags: %" PRId64 "\n", target_info.feature_flags);
|
||||
printf("Reserved: %" PRId64 "\n", target_info.reserved);
|
||||
printf("Arch: %s\n", target_info.arch);
|
||||
@ -546,7 +546,7 @@ ProgramMain(int argc, char **argv)
|
||||
reader = new WasmFile(filename);
|
||||
}
|
||||
else {
|
||||
printf("unkown file extension: %s\n", dot);
|
||||
printf("unknown file extension: %s\n", dot);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user