tccpe: improve dllimport/export and use for tcc_add_symbol
This commit is contained in:
10
i386-gen.c
10
i386-gen.c
@ -215,9 +215,10 @@ ST_FUNC void load(int r, SValue *sv)
|
||||
SValue v1;
|
||||
|
||||
#ifdef TCC_TARGET_PE
|
||||
if (pe_dllimport(r, sv, load))
|
||||
return;
|
||||
SValue v2;
|
||||
sv = pe_getimport(sv, &v2);
|
||||
#endif
|
||||
|
||||
fr = sv->r;
|
||||
ft = sv->type.t;
|
||||
fc = sv->c.ul;
|
||||
@ -283,9 +284,10 @@ ST_FUNC void store(int r, SValue *v)
|
||||
int fr, bt, ft, fc;
|
||||
|
||||
#ifdef TCC_TARGET_PE
|
||||
if (pe_dllimport(r, v, store))
|
||||
return;
|
||||
SValue v2;
|
||||
v = pe_getimport(v, &v2);
|
||||
#endif
|
||||
|
||||
ft = v->type.t;
|
||||
fc = v->c.ul;
|
||||
fr = v->r & VT_VALMASK;
|
||||
|
||||
Reference in New Issue
Block a user