diff options
author | Brian Gaeke <gaeke@uiuc.edu> | 2004-04-23 17:11:16 +0000 |
---|---|---|
committer | Brian Gaeke <gaeke@uiuc.edu> | 2004-04-23 17:11:16 +0000 |
commit | b61fc83ecb75e4b1dd44adc3acbd5559aa882e81 (patch) | |
tree | 59ad14da2c5fe7f236dd19f614388394a23369e1 /lib/Target | |
parent | 62c6f879aee4cb0cb0d27bf6b645172ca131a7d1 (diff) | |
download | external_llvm-b61fc83ecb75e4b1dd44adc3acbd5559aa882e81.zip external_llvm-b61fc83ecb75e4b1dd44adc3acbd5559aa882e81.tar.gz external_llvm-b61fc83ecb75e4b1dd44adc3acbd5559aa882e81.tar.bz2 |
Use emitWordAt() to emit forward-branch fixups.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13120 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r-- | lib/Target/X86/X86CodeEmitter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/X86/X86CodeEmitter.cpp b/lib/Target/X86/X86CodeEmitter.cpp index 709455c..ddd5f56 100644 --- a/lib/Target/X86/X86CodeEmitter.cpp +++ b/lib/Target/X86/X86CodeEmitter.cpp @@ -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(); |