From b152f9ff783eb8131d9a7c93b12ae497a4c9b598 Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Tue, 25 May 2004 17:29:21 +0000 Subject: [PATCH] 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 --- lib/AsmParser/llvmAsmParser.y | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/AsmParser/llvmAsmParser.y b/lib/AsmParser/llvmAsmParser.y index c8304d75cc3..98d79e01c9d 100644 --- a/lib/AsmParser/llvmAsmParser.y +++ b/lib/AsmParser/llvmAsmParser.y @@ -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; } -- 2.34.1