diff options
author | Evan Cheng <evan.cheng@apple.com> | 2006-07-27 18:21:10 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2006-07-27 18:21:10 +0000 |
commit | f141cc46faf6f0525f0baa10b6a6c976301874a5 (patch) | |
tree | 606b1c78ed5faa3eb7e66431a6304442826f6b60 /lib/Target/Alpha/AlphaJITInfo.cpp | |
parent | 16620fcbfd12fcd0530e79e121a7e5ff33cb9618 (diff) | |
download | external_llvm-f141cc46faf6f0525f0baa10b6a6c976301874a5.zip external_llvm-f141cc46faf6f0525f0baa10b6a6c976301874a5.tar.gz external_llvm-f141cc46faf6f0525f0baa10b6a6c976301874a5.tar.bz2 |
Resolve BB references with relocation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29351 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Alpha/AlphaJITInfo.cpp')
-rw-r--r-- | lib/Target/Alpha/AlphaJITInfo.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/lib/Target/Alpha/AlphaJITInfo.cpp b/lib/Target/Alpha/AlphaJITInfo.cpp index 8dc5a47..81f5e74 100644 --- a/lib/Target/Alpha/AlphaJITInfo.cpp +++ b/lib/Target/Alpha/AlphaJITInfo.cpp @@ -304,19 +304,3 @@ void AlphaJITInfo::relocate(void *Function, MachineRelocation *MR, } } } - -void AlphaJITInfo::resolveBBRefs(MachineCodeEmitter &MCE) { - // Resolve all forward branches now... - for (unsigned i = 0, e = BBRefs.size(); i != e; ++i) { - unsigned* Location = - (unsigned*)MCE.getMachineBasicBlockAddress(BBRefs[i].first); - unsigned* Ref = (unsigned*)BBRefs[i].second; - intptr_t BranchTargetDisp = - (((unsigned char*)Location - (unsigned char*)Ref) >> 2) - 1; - DEBUG(std::cerr << "Fixup @ " << (void*)Ref << " to " << (void*)Location - << " Disp " << BranchTargetDisp - << " using " << (BranchTargetDisp & ((1 << 22)-1)) << "\n"); - *Ref |= (BranchTargetDisp & ((1 << 21)-1)); - } - BBRefs.clear(); -} |