From 94bf4d2c227e2073458cabc768d1167e1f3ab2f8 Mon Sep 17 00:00:00 2001 From: grischka Date: Sat, 19 Dec 2009 22:08:52 +0100 Subject: tccpe: improve dllimport --- x86_64-gen.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'x86_64-gen.c') diff --git a/x86_64-gen.c b/x86_64-gen.c index 9f05889..86ec4ea 100644 --- a/x86_64-gen.c +++ b/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; -- cgit v1.3.1