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
This commit is contained in:
Chris Lattner 2004-07-14 23:07:13 +00:00
parent a09000db75
commit 0f01bbc3b2

View 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;