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/Support.cpp | |
parent | 5a2f7ec55f8e389049da446bfa356a8f91085b86 (diff) | |
download | bcm5719-llvm-a0d7b084ef7faab8739ef3e9186fdf9a94c3ed22.tar.gz bcm5719-llvm-a0d7b084ef7faab8739ef3e9186fdf9a94c3ed22.zip |
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/Support.cpp')
-rw-r--r-- | llvm/lib/ExecutionEngine/Interpreter/Support.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/ExecutionEngine/Interpreter/Support.cpp b/llvm/lib/ExecutionEngine/Interpreter/Support.cpp index 4c31d2692ad..5f4137ce5d9 100644 --- a/llvm/lib/ExecutionEngine/Interpreter/Support.cpp +++ b/llvm/lib/ExecutionEngine/Interpreter/Support.cpp @@ -7,6 +7,7 @@ #include "Interpreter.h" #include "llvm/SymbolTable.h" #include "llvm/Assembly/Writer.h" +#include "llvm/Module.h" #include <iostream> using std::cout; @@ -38,7 +39,7 @@ std::vector<Value*> Interpreter::LookupMatchingNames(const std::string &Name) { Function *CurMeth = getCurrentMethod(); if (CurMeth) ::LookupMatchingNames(Name, CurMeth->getSymbolTable(), Results); - if (CurMod ) ::LookupMatchingNames(Name, CurMod ->getSymbolTable(), Results); + ::LookupMatchingNames(Name, getModule().getSymbolTable(), Results); return Results; } |