mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
Eliminate use of SymTabValue class
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2357 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
67e08db3b9
commit
2312b1c594
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user