1 //===-- MCInstrAnalysis.cpp - InstrDesc target hooks ------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #include "llvm/MC/MCInstrAnalysis.h"
13 uint64_t MCInstrAnalysis::evaluateBranch(const MCInst &Inst, uint64_t Addr,
14 uint64_t Size) const {
15 if (Info->get(Inst.getOpcode()).OpInfo[0].OperandType != MCOI::OPERAND_PCREL)
18 int64_t Imm = Inst.getOperand(0).getImm();