Rename architecture 386 to i386

This commit is contained in:
gingerBill
2022-01-15 17:40:00 +00:00
parent 6c48670819
commit 29ebe0c3c9
15 changed files with 34 additions and 34 deletions
+2 -2
View File
@@ -1361,7 +1361,7 @@ lbValue lb_build_builtin_proc(lbProcedure *p, Ast *expr, TypeAndValue const &tv,
}
case BuiltinProc_cpu_relax:
if (build_context.metrics.arch == TargetArch_386 ||
if (build_context.metrics.arch == TargetArch_i386 ||
build_context.metrics.arch == TargetArch_amd64) {
LLVMTypeRef func_type = LLVMFunctionType(LLVMVoidTypeInContext(p->module->ctx), nullptr, 0, false);
LLVMValueRef the_asm = llvm_get_inline_asm(func_type, str_lit("pause"), {});
@@ -2018,7 +2018,7 @@ lbValue lb_build_builtin_proc(lbProcedure *p, Ast *expr, TypeAndValue const &tv,
inline_asm = llvm_get_inline_asm(func_type, make_string_c(asm_string), make_string_c(constraints));
}
break;
case TargetArch_386:
case TargetArch_i386:
{
GB_ASSERT(arg_count <= 7);