From 2341ee5142c184e06964f66696ebf88931953e7d Mon Sep 17 00:00:00 2001 From: grischka Date: Thu, 14 Jan 2010 20:55:51 +0100 Subject: tccpe: improve dllimport/export and use for tcc_add_symbol --- i386-gen.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'i386-gen.c') diff --git a/i386-gen.c b/i386-gen.c index 9a8ceee..5ea70df 100644 --- a/i386-gen.c +++ b/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; -- cgit v1.3.1