diff options
Diffstat (limited to 'lib/ExecutionEngine/Interpreter/Support.cpp')
-rw-r--r-- | lib/ExecutionEngine/Interpreter/Support.cpp | 3 |
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; } |