[Lldb-commits] [lldb] r209051 - Update how we create our MCSymbolizer to keep working correctly

Jason Molenda jmolenda at apple.com
Fri May 16 17:27:44 PDT 2014


Author: jmolenda
Date: Fri May 16 19:27:44 2014
New Revision: 209051

URL: http://llvm.org/viewvc/llvm-project?rev=209051&view=rev
Log:
Update how we create our MCSymbolizer to keep working correctly
on arm64 binaries after the llvm r206063 changes.  
Patch written by Jim Ingham and Lang Hames.
<rdar://problem/16935671> 

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=209051&r1=209050&r2=209051&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Disassembler/llvm/DisassemblerLLVMC.cpp (original)
+++ lldb/trunk/source/Plugins/Disassembler/llvm/DisassemblerLLVMC.cpp Fri May 16 19:27:44 2014
@@ -455,7 +455,11 @@ DisassemblerLLVMC::LLVMCDisassembler::LL
             m_is_valid = false;
             return;
         }
-        m_disasm_ap->setSymbolizer(std::unique_ptr<llvm::MCSymbolizer>(new llvm::MCExternalSymbolizer(*m_context_ap.get(),std::move(RelInfo),NULL,DisassemblerLLVMC::SymbolLookupCallback,(void *) &owner)));
+        std::unique_ptr<llvm::MCSymbolizer> symbolizer_up(curr_target->createMCSymbolizer(triple, NULL,
+                       DisassemblerLLVMC::SymbolLookupCallback,
+                       (void *) &owner,
+                       m_context_ap.get(), RelInfo.release()));
+        m_disasm_ap->setSymbolizer(std::move(symbolizer_up));
 
 
         unsigned asm_printer_variant;





More information about the lldb-commits mailing list