tccpe: improve dllimport

This commit is contained in:
grischka
2009-12-19 22:08:52 +01:00
parent 1308e8ebcf
commit 94bf4d2c22
6 changed files with 51 additions and 44 deletions

View File

@ -312,6 +312,11 @@ void load(int r, SValue *sv)
int v, t, ft, fc, fr;
SValue v1;
#ifdef TCC_TARGET_PE
if (pe_dllimport(r, sv, load))
return;
#endif
fr = sv->r;
ft = sv->type.t;
fc = sv->c.ul;
@ -439,6 +444,11 @@ void store(int r, SValue *v)
/* store the REX prefix in this variable when PIC is enabled */
int pic = 0;
#ifdef TCC_TARGET_PE
if (pe_dllimport(r, v, store))
return;
#endif
ft = v->type.t;
fc = v->c.ul;
fr = v->r & VT_VALMASK;