mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
Use emitWordAt() to emit forward-branch fixups.
llvm-svn: 13120
This commit is contained in:
parent
255d0d9b26
commit
0db103b4b3
@ -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