summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine/Interpreter/Support.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-04-28 04:55:14 +0000
committerChris Lattner <sabre@nondot.org>2002-04-28 04:55:14 +0000
commitccd1df0144e25918f77c65665160b9d350e40282 (patch)
tree9911694f0c5baf8a00f7c76cd8f7adf0fa6e8d19 /llvm/lib/ExecutionEngine/Interpreter/Support.cpp
parent30ddf7f57f9625465568522c1a883d4e22333726 (diff)
downloadbcm5719-llvm-ccd1df0144e25918f77c65665160b9d350e40282.tar.gz
bcm5719-llvm-ccd1df0144e25918f77c65665160b9d350e40282.zip
Eliminate use of SymTabValue class
llvm-svn: 2357
Diffstat (limited to 'llvm/lib/ExecutionEngine/Interpreter/Support.cpp')
-rw-r--r--llvm/lib/ExecutionEngine/Interpreter/Support.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/ExecutionEngine/Interpreter/Support.cpp b/llvm/lib/ExecutionEngine/Interpreter/Support.cpp
index cac3b74c82c..aa97621214a 100644
--- a/llvm/lib/ExecutionEngine/Interpreter/Support.cpp
+++ b/llvm/lib/ExecutionEngine/Interpreter/Support.cpp
@@ -14,9 +14,9 @@ using std::cout;
//
// LookupMatchingNames helper - Search a symbol table for values matching Name.
//
-static inline void LookupMatchingNames(const std::string &Name,SymTabValue &STV,
+static inline void LookupMatchingNames(const std::string &Name,
+ SymbolTable *SymTab,
std::vector<Value*> &Results) {
- SymbolTable *SymTab = STV.getSymbolTable();
if (SymTab == 0) return; // No symbolic values :(
// Loop over all of the type planes in the symbol table...
@@ -40,8 +40,8 @@ std::vector<Value*> Interpreter::LookupMatchingNames(const std::string &Name) {
std::vector<Value*> Results;
Function *CurMeth = getCurrentMethod();
- if (CurMeth) ::LookupMatchingNames(Name, *CurMeth, Results);
- if (CurMod ) ::LookupMatchingNames(Name, *CurMod , Results);
+ if (CurMeth) ::LookupMatchingNames(Name, CurMeth->getSymbolTable(), Results);
+ if (CurMod ) ::LookupMatchingNames(Name, CurMod ->getSymbolTable(), Results);
return Results;
}
OpenPOWER on IntegriCloud