[MC] Move MCInstrAnalysis::evaluateBranch to X86MCInstrAnalysis::evaluateBranch
authorFangrui Song <maskray@google.com>
Thu, 30 Apr 2020 06:17:14 +0000 (23:17 -0700)
committerFangrui Song <maskray@google.com>
Thu, 30 Apr 2020 06:23:52 +0000 (23:23 -0700)
commit52eb2f65a7d28bb225ca8a0bc8c4090d324e22d9
tree2fb4c29187080080778af171494114c464a29cd7
parentbb0842a3f11e5d5a13d3212b627d9f1521bff553
[MC] Move MCInstrAnalysis::evaluateBranch to X86MCInstrAnalysis::evaluateBranch

The generic implementation is actually specific to x86. It assumes the
offset is relative to the end of the instruction and the immediate is
not scaled (which is false on most RISC).
llvm/lib/MC/MCInstrAnalysis.cpp
llvm/lib/Target/X86/MCTargetDesc/X86MCTargetDesc.cpp