[Lldb-commits] [lldb] r236716 - A small fix in rL236696

Mohit K. Bhakkad mohit.bhakkad at gmail.com
Thu May 7 04:43:23 PDT 2015


Author: mohit.bhakkad
Date: Thu May  7 06:43:23 2015
New Revision: 236716

URL: http://llvm.org/viewvc/llvm-project?rev=236716&view=rev
Log:
A small fix in rL236696

Modified:
    lldb/trunk/source/Plugins/Instruction/MIPS64/EmulateInstructionMIPS64.cpp

Modified: lldb/trunk/source/Plugins/Instruction/MIPS64/EmulateInstructionMIPS64.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Instruction/MIPS64/EmulateInstructionMIPS64.cpp?rev=236716&r1=236715&r2=236716&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Instruction/MIPS64/EmulateInstructionMIPS64.cpp (original)
+++ lldb/trunk/source/Plugins/Instruction/MIPS64/EmulateInstructionMIPS64.cpp Thu May  7 06:43:23 2015
@@ -48,6 +48,7 @@ using namespace lldb_private;
 //
 //----------------------------------------------------------------------
 
+#ifdef __mips__
 extern "C" {
     void LLVMInitializeMipsTargetInfo ();
     void LLVMInitializeMipsTarget ();
@@ -55,6 +56,7 @@ extern "C" {
     void LLVMInitializeMipsTargetMC ();
     void LLVMInitializeMipsDisassembler ();
 }
+#endif
 
 EmulateInstructionMIPS64::EmulateInstructionMIPS64 (const lldb_private::ArchSpec &arch) :
     EmulateInstruction (arch)
@@ -70,6 +72,7 @@ EmulateInstructionMIPS64::EmulateInstruc
      * to decode the instructions so that the decoding complexity stays with LLVM. 
      * Initialize the MIPS targets and disassemblers.
     */
+#ifdef __mips__
     if (!target)
     {
         LLVMInitializeMipsTargetInfo ();
@@ -79,6 +82,7 @@ EmulateInstructionMIPS64::EmulateInstruc
         LLVMInitializeMipsDisassembler ();
         target = llvm::TargetRegistry::lookupTarget (triple.getTriple(), Error);
     }
+#endif
 
     assert (target);
 





More information about the lldb-commits mailing list