mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
Use emitWordAt() to emit forward-branch fixups.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13120 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
62c6f879ae
commit
b61fc83ecb
@ -240,7 +240,7 @@ bool Emitter::runOnMachineFunction(MachineFunction &MF) {
|
||||
for (unsigned i = 0, e = BBRefs.size(); i != e; ++i) {
|
||||
unsigned Location = BasicBlockAddrs[BBRefs[i].first];
|
||||
unsigned Ref = BBRefs[i].second;
|
||||
*(unsigned*)(intptr_t)Ref = Location-Ref-4;
|
||||
MCE.emitWordAt (Location-Ref-4, (unsigned*)(intptr_t)Ref);
|
||||
}
|
||||
BBRefs.clear();
|
||||
BasicBlockAddrs.clear();
|
||||
|
Loading…
Reference in New Issue
Block a user