aboutsummaryrefslogtreecommitdiff
path: root/x86_64-gen.c
diff options
context:
space:
mode:
authorgrischka <grischka>2010-01-14 20:55:51 +0100
committergrischka <grischka>2010-01-14 20:59:42 +0100
commit2341ee5142c184e06964f66696ebf88931953e7d (patch)
tree6f858fd311ae47ec4508301e6ebf1df33bd42c8a /x86_64-gen.c
parentbdb9387a7494d7d5e299cb13bcc94f00215976dd (diff)
downloadtinycc-2341ee5142c184e06964f66696ebf88931953e7d.tar.gz
tinycc-2341ee5142c184e06964f66696ebf88931953e7d.tar.bz2
tccpe: improve dllimport/export and use for tcc_add_symbol
Diffstat (limited to 'x86_64-gen.c')
-rw-r--r--x86_64-gen.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/x86_64-gen.c b/x86_64-gen.c
index a80020f..10003d1 100644
--- a/x86_64-gen.c
+++ b/x86_64-gen.c
@@ -335,8 +335,8 @@ 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;
@@ -469,8 +469,8 @@ void store(int r, SValue *v)
int pic = 0;
#ifdef TCC_TARGET_PE
- if (pe_dllimport(r, v, store))
- return;
+ SValue v2;
+ v = pe_getimport(v, &v2);
#endif
ft = v->type.t;