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 :)


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32711 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Anton Korobeynikov
2006-12-20 01:03:20 +00:00
parent 0a3615246f
commit 15fccf1d93
3 changed files with 28 additions and 7 deletions

View File

@@ -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 {