mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-01 16:40:15 +00:00
Changed to use SymbolTable's new lookup interface.
llvm-svn: 13758
This commit is contained in:
parent
122d536042
commit
1190d6061c
@ -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