tccpe: improve dllimport
This commit is contained in:
10
x86_64-gen.c
10
x86_64-gen.c
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user