This is logically part of the last patch. Just more really horrible code
authorChris Lattner <sabre@nondot.org>
Wed, 14 Jul 2004 23:07:13 +0000 (23:07 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 14 Jul 2004 23:07:13 +0000 (23:07 +0000)
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

index 710c674a77109d4e249023aa5be085a8794ff176..5029ef81ae968e675ac0f179629b3346aa2938a7 100644 (file)
@@ -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;