From 0f01bbc3b2b4830933a6900a7a881289eb4841f3 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 14 Jul 2004 23:07:13 +0000 Subject: [PATCH] This is logically part of the last patch. Just more really horrible code that is made unnecessary by it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14831 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/AsmParser/llvmAsmParser.y | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/lib/AsmParser/llvmAsmParser.y b/lib/AsmParser/llvmAsmParser.y index 710c674a771..5029ef81ae9 100644 --- a/lib/AsmParser/llvmAsmParser.y +++ b/lib/AsmParser/llvmAsmParser.y @@ -164,23 +164,6 @@ static struct PerFunctionInfo { // Resolve all forward references now. ResolveDefinitions(LateResolveValues, &CurModule.LateResolveValues); - // Make sure to resolve any constant expr references that might exist within - // the function we just declared itself. - ValID FID; - if (CurrentFunction->hasName()) { - FID = ValID::create((char*)CurrentFunction->getName().c_str()); - } else { - // Figure out which slot number if is... - ValueList &List = CurModule.Values[CurrentFunction->getType()]; - for (unsigned i = 0; ; ++i) { - assert(i < List.size() && "Function not found!"); - if (List[i] == CurrentFunction) { - FID = ValID::create((int)i); - break; - } - } - } - Values.clear(); // Clear out function local definitions Types.clear(); // Clear out function local types CurrentFunction = 0;