Update for llvm API change.

llvm-svn: 221752
This commit is contained in:
Rafael Espindola 2014-11-12 02:04:31 +00:00
parent 7fc5b87480
commit 434df0a18c
1 changed files with 2 additions and 4 deletions

View File

@ -21,7 +21,6 @@
#include "llvm/MC/MCRelocationInfo.h"
#include "llvm/MC/MCSubtargetInfo.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/StringRefMemoryObject.h"
#include "llvm/Support/TargetRegistry.h"
#include "llvm/Support/TargetSelect.h"
#include "llvm/ADT/SmallString.h"
@ -495,14 +494,13 @@ DisassemblerLLVMC::LLVMCDisassembler::GetMCInst (const uint8_t *opcode_data,
lldb::addr_t pc,
llvm::MCInst &mc_inst)
{
llvm::StringRef data((const char*)opcode_data, opcode_data_len);
llvm::StringRefMemoryObject memory_object(data, pc);
llvm::ArrayRef<uint8_t> data(opcode_data, opcode_data_len);
llvm::MCDisassembler::DecodeStatus status;
uint64_t new_inst_size;
status = m_disasm_ap->getInstruction(mc_inst,
new_inst_size,
memory_object,
data,
pc,
llvm::nulls(),
llvm::nulls());