diff options
| author | grischka <grischka> | 2009-12-19 22:08:52 +0100 |
|---|---|---|
| committer | grischka <grischka> | 2009-12-19 22:16:21 +0100 |
| commit | 94bf4d2c227e2073458cabc768d1167e1f3ab2f8 (patch) | |
| tree | c18160b09f29b7a3dddbdb10756edb1526d98f4e /x86_64-gen.c | |
| parent | 1308e8ebcfba43b4b96b7ef32f1a177b1168665d (diff) | |
| download | tinycc-94bf4d2c227e2073458cabc768d1167e1f3ab2f8.tar.gz tinycc-94bf4d2c227e2073458cabc768d1167e1f3ab2f8.tar.bz2 | |
tccpe: improve dllimport
Diffstat (limited to 'x86_64-gen.c')
| -rw-r--r-- | x86_64-gen.c | 10 |
1 files changed, 10 insertions, 0 deletions
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; |
