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:
Chris Lattner 2006-05-02 17:16:20 +00:00
parent 14c03058be
commit 608c189534

View File

@ -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();