aboutsummaryrefslogtreecommitdiff
path: root/lib/ExecutionEngine/Interpreter/Support.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-12-23 23:59:41 +0000
committerChris Lattner <sabre@nondot.org>2002-12-23 23:59:41 +0000
commitfe11a97fcde7c63109c3ad36570657807d0cd6ef (patch)
treeac8df082eeca9d70e88d4dd64936cc821b2c2f93 /lib/ExecutionEngine/Interpreter/Support.cpp
parentb76d4965c18063955f5a7f027a1869da885769d5 (diff)
Substantial changes to refactor LLI to incorporate both the Jello JIT and
the traditional LLI interpreter git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5125 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine/Interpreter/Support.cpp')
-rw-r--r--lib/ExecutionEngine/Interpreter/Support.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/ExecutionEngine/Interpreter/Support.cpp b/lib/ExecutionEngine/Interpreter/Support.cpp
index 4c31d2692a..5f4137ce5d 100644
--- a/lib/ExecutionEngine/Interpreter/Support.cpp
+++ b/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;
}