mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-29 10:25:12 +00:00
Fix a bug that prevented compilation of multiple functions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4809 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -44,6 +44,7 @@ namespace {
|
|||||||
F = &MachineFunction::construct(&Fn, TM);
|
F = &MachineFunction::construct(&Fn, TM);
|
||||||
visit(Fn);
|
visit(Fn);
|
||||||
RegMap.clear();
|
RegMap.clear();
|
||||||
|
CurReg = MRegisterInfo::FirstVirtualRegister;
|
||||||
F = 0;
|
F = 0;
|
||||||
return false; // We never modify the LLVM itself.
|
return false; // We never modify the LLVM itself.
|
||||||
}
|
}
|
||||||
|
@@ -44,6 +44,7 @@ namespace {
|
|||||||
F = &MachineFunction::construct(&Fn, TM);
|
F = &MachineFunction::construct(&Fn, TM);
|
||||||
visit(Fn);
|
visit(Fn);
|
||||||
RegMap.clear();
|
RegMap.clear();
|
||||||
|
CurReg = MRegisterInfo::FirstVirtualRegister;
|
||||||
F = 0;
|
F = 0;
|
||||||
return false; // We never modify the LLVM itself.
|
return false; // We never modify the LLVM itself.
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user