mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-29 10:32:47 +00:00
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:
parent
a09000db75
commit
0f01bbc3b2
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user