//
// 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...
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;
}