aboutsummaryrefslogtreecommitdiff
path: root/tcc.h
diff options
context:
space:
mode:
authorgrischka <grischka>2015-11-20 11:22:56 +0100
committergrischka <grischka>2015-11-20 11:22:56 +0100
commit54cf57ab1a85df3679cd9a7ecec097f04d3fd82f (patch)
tree44e36efb6af2b1d96177a2d419dab18095e9a561 /tcc.h
parent992cbda8d0958572831ea18c58c32ed11daf812d (diff)
downloadtinycc-54cf57ab1a85df3679cd9a7ecec097f04d3fd82f.tar.gz
tinycc-54cf57ab1a85df3679cd9a7ecec097f04d3fd82f.tar.bz2
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
Diffstat (limited to 'tcc.h')
-rw-r--r--tcc.h3
1 files changed, 2 insertions, 1 deletions
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;