diff options
| author | Anton Korobeynikov <asl@math.spbu.ru> | 2006-12-20 01:03:20 +0000 |
|---|---|---|
| committer | Anton Korobeynikov <asl@math.spbu.ru> | 2006-12-20 01:03:20 +0000 |
| commit | 93acb49182767055967c4cc812796e2772e3a989 (patch) | |
| tree | 2823f7182f57863275b8c69af296181ec4ba849e /llvm/lib/Target/X86/X86Subtarget.h | |
| parent | 00bb216977a4a1a4db60b30263fe9b19fa7fa0d7 (diff) | |
| download | bcm5719-llvm-93acb49182767055967c4cc812796e2772e3a989.tar.gz bcm5719-llvm-93acb49182767055967c4cc812796e2772e3a989.zip | |
Fixed dllimported symbols support during JIT'ing. JIT on mingw32
platform should be more or less workable. At least, sim is running fine
under lli :)
llvm-svn: 32711
Diffstat (limited to 'llvm/lib/Target/X86/X86Subtarget.h')
| -rw-r--r-- | llvm/lib/Target/X86/X86Subtarget.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/lib/Target/X86/X86Subtarget.h b/llvm/lib/Target/X86/X86Subtarget.h index 70e70e90110..4a3bc342ee2 100644 --- a/llvm/lib/Target/X86/X86Subtarget.h +++ b/llvm/lib/Target/X86/X86Subtarget.h @@ -61,6 +61,9 @@ private: /// pointer size is 64 bit. bool Is64Bit; + /// GenerateExtraLoadsForGVs - True if we should generate extra loads for + /// indirect symbols (e.g. dllimported symbols on windows). + bool GenerateExtraLoadsForGVs; public: enum { isELF, isCygwin, isDarwin, isWindows @@ -112,6 +115,10 @@ public: /// value of GV itself. This means that the GlobalAddress must be in the base /// or index register of the address, not the GV offset field. bool GVRequiresExtraLoad(const GlobalValue* GV, bool isDirectCall) const; + + /// SetJITMode - This is called to inform the subtarget info that we are + /// producing code for the JIT. + void SetJITMode(); }; namespace X86 { |

