mirror of
https://github.com/odin-lang/Odin.git
synced 2026-08-16 02:28:12 +00:00
Templatize the check_asm.cpp code ready for other architectures
This commit is contained in:
@@ -2065,7 +2065,11 @@ gb_internal void check_entity_decl(CheckerContext *ctx, Entity *e, DeclInfo *d,
|
||||
break;
|
||||
|
||||
case Entity_AsmTemplate:
|
||||
check_asm_template(&c, e, d);
|
||||
if (build_context.metrics.arch == TargetArch_amd64) {
|
||||
check_asm_template(&g_asm_amd64, &c, e, d);
|
||||
} else {
|
||||
error(e->token, "asm templates are not currently supported for this target");
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user