mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-03 09:21:13 +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.finishFunction(MF);
|
||||
|
||||
// Resolve all forward branches now...
|
||||
// Resolve all forward branches now.
|
||||
for (unsigned i = 0, e = BBRefs.size(); i != e; ++i) {
|
||||
unsigned Location = BasicBlockAddrs[BBRefs[i].first];
|
||||
unsigned Ref = BBRefs[i].second;
|
||||
MCE.emitWordAt(Location-Ref-4, (unsigned*)(intptr_t)Ref);
|
||||
*((unsigned*)(intptr_t)Ref) = Location-Ref-4;
|
||||
}
|
||||
BBRefs.clear();
|
||||
BasicBlockAddrs.clear();
|
||||
|
Loading…
Reference in New Issue
Block a user