From 54cf57ab1a85df3679cd9a7ecec097f04d3fd82f Mon Sep 17 00:00:00 2001 From: grischka Date: Fri, 20 Nov 2015 11:22:56 +0100 Subject: tccgen: asm_label cleanup - avoid memory allocation by using its (int) token number - avoid additional function parameter by using Attribute Also: fix some strange looking error messages --- tcc.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tcc.h') diff --git a/tcc.h b/tcc.h index 394b6ab..06b80fe 100644 --- a/tcc.h +++ b/tcc.h @@ -434,12 +434,13 @@ typedef struct AttributeDef { struct Attribute a; struct Section *section; int alias_target; /* token */ + int asm_label; /* associated asm label */ } AttributeDef; /* symbol management */ typedef struct Sym { int v; /* symbol token */ - char *asm_label; /* associated asm label */ + int asm_label; /* associated asm label */ union { long r; /* associated register */ struct Attribute a; -- cgit v1.3.1