diff options
author | Chris Lattner <sabre@nondot.org> | 2002-12-23 23:59:41 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-12-23 23:59:41 +0000 |
commit | a0d7b084ef7faab8739ef3e9186fdf9a94c3ed22 (patch) | |
tree | 166a5a56fe7c449ed8637083644e1692954664bd /llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp | |
parent | 5a2f7ec55f8e389049da446bfa356a8f91085b86 (diff) | |
download | llvm-a0d7b084ef7faab8739ef3e9186fdf9a94c3ed22.zip llvm-a0d7b084ef7faab8739ef3e9186fdf9a94c3ed22.tar.gz llvm-a0d7b084ef7faab8739ef3e9186fdf9a94c3ed22.tar.bz2 |
Substantial changes to refactor LLI to incorporate both the Jello JIT and
the traditional LLI interpreter
llvm-svn: 5125
Diffstat (limited to 'llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp')
-rw-r--r-- | llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp b/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp index 79e730f..0d8cae2 100644 --- a/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp +++ b/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp @@ -12,6 +12,7 @@ #include "Interpreter.h" #include "ExecutionAnnotations.h" +#include "llvm/Module.h" #include "llvm/DerivedTypes.h" #include "llvm/SymbolTable.h" #include "llvm/Target/TargetData.h" @@ -23,8 +24,6 @@ using std::vector; using std::cout; -extern TargetData TD; - typedef GenericValue (*ExFunc)(FunctionType *, const vector<GenericValue> &); static std::map<const Function *, ExFunc> Functions; static std::map<std::string, ExFunc> FuncNames; @@ -440,8 +439,8 @@ static FILE *getFILE(PointerTy Ptr) { static PointerTy IOBBase = 0; static unsigned FILESize; - if (LastMod != TheInterpreter->getModule()) { // Module change or initialize? - Module *M = LastMod = TheInterpreter->getModule(); + if (LastMod != &TheInterpreter->getModule()) { // Module change or initialize? + Module *M = LastMod = &TheInterpreter->getModule(); // Check to see if the currently loaded module contains an __iob symbol... GlobalVariable *IOB = 0; @@ -456,6 +455,7 @@ static FILE *getFILE(PointerTy Ptr) { if (IOB) break; } +#if 0 /// FIXME! __iob support for LLI // If we found an __iob symbol now, find out what the actual address it's // held in is... if (IOB) { @@ -472,6 +472,7 @@ static FILE *getFILE(PointerTy Ptr) { else FILESize = 16*8; // Default size } +#endif } // Check to see if this is a reference to __iob... |