mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-03 14:31:10 +00:00
There is no reason to use a virtual method to store this word.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28053 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
14c03058be
commit
608c189534
@ -89,11 +89,11 @@ bool Emitter::runOnMachineFunction(MachineFunction &MF) {
|
|||||||
MCE.emitJumpTableInfo(MF.getJumpTableInfo(), BasicBlockAddrs);
|
MCE.emitJumpTableInfo(MF.getJumpTableInfo(), BasicBlockAddrs);
|
||||||
MCE.finishFunction(MF);
|
MCE.finishFunction(MF);
|
||||||
|
|
||||||
// Resolve all forward branches now...
|
// Resolve all forward branches now.
|
||||||
for (unsigned i = 0, e = BBRefs.size(); i != e; ++i) {
|
for (unsigned i = 0, e = BBRefs.size(); i != e; ++i) {
|
||||||
unsigned Location = BasicBlockAddrs[BBRefs[i].first];
|
unsigned Location = BasicBlockAddrs[BBRefs[i].first];
|
||||||
unsigned Ref = BBRefs[i].second;
|
unsigned Ref = BBRefs[i].second;
|
||||||
MCE.emitWordAt(Location-Ref-4, (unsigned*)(intptr_t)Ref);
|
*((unsigned*)(intptr_t)Ref) = Location-Ref-4;
|
||||||
}
|
}
|
||||||
BBRefs.clear();
|
BBRefs.clear();
|
||||||
BasicBlockAddrs.clear();
|
BasicBlockAddrs.clear();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user