From 2312b1c59496070cdbd8ff3d7b21d6cd850f7c98 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 28 Apr 2002 04:55:14 +0000 Subject: [PATCH] Eliminate use of SymTabValue class git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2357 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/ExecutionEngine/Interpreter/Support.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/ExecutionEngine/Interpreter/Support.cpp b/lib/ExecutionEngine/Interpreter/Support.cpp index cac3b74c82c..aa97621214a 100644 --- a/lib/ExecutionEngine/Interpreter/Support.cpp +++ b/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 &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 Interpreter::LookupMatchingNames(const std::string &Name) { std::vector 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; }