mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
Changed to use SymbolTable's new lookup interface.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13758 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e0b295afd6
commit
b152f9ff78
@ -239,7 +239,7 @@ static const Type *getTypeVal(const ValID &D, bool DoNotImprovise = false) {
|
||||
Value *N = 0;
|
||||
if (inFunctionScope()) {
|
||||
SymTab = &CurFun.CurrentFunction->getSymbolTable();
|
||||
N = SymTab->lookup(Type::TypeTy, Name);
|
||||
N = SymTab->lookupType(Name);
|
||||
}
|
||||
|
||||
if (N == 0) {
|
||||
@ -247,7 +247,7 @@ static const Type *getTypeVal(const ValID &D, bool DoNotImprovise = false) {
|
||||
// hasn't been added to the module...
|
||||
//
|
||||
SymTab = &CurModule.CurrentModule->getSymbolTable();
|
||||
N = SymTab->lookup(Type::TypeTy, Name);
|
||||
N = SymTab->lookupType(Name);
|
||||
if (N == 0) break;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user