[Lldb-commits] [lldb] r221752 - Update for llvm API change.

Rafael Espindola rafael.espindola at gmail.com
Tue Nov 11 18:04:31 PST 2014


Author: rafael
Date: Tue Nov 11 20:04:31 2014
New Revision: 221752

URL: http://llvm.org/viewvc/llvm-project?rev=221752&view=rev
Log:
Update for llvm API change.

Modified:
    lldb/trunk/source/Plugins/Disassembler/llvm/DisassemblerLLVMC.cpp

Modified: lldb/trunk/source/Plugins/Disassembler/llvm/DisassemblerLLVMC.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Disassembler/llvm/DisassemblerLLVMC.cpp?rev=221752&r1=221751&r2=221752&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Disassembler/llvm/DisassemblerLLVMC.cpp (original)
+++ lldb/trunk/source/Plugins/Disassembler/llvm/DisassemblerLLVMC.cpp Tue Nov 11 20:04:31 2014
@@ -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::Ge
                                                  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());





More information about the lldb-commits mailing list