From 5bf047e5c42215ed2a38b4a8e1838ebfcdd6bf2c Mon Sep 17 00:00:00 2001 From: "Mohit K. Bhakkad" Date: Thu, 7 May 2015 11:43:23 +0000 Subject: [PATCH] A small fix in rL236696 llvm-svn: 236716 --- .../Plugins/Instruction/MIPS64/EmulateInstructionMIPS64.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lldb/source/Plugins/Instruction/MIPS64/EmulateInstructionMIPS64.cpp b/lldb/source/Plugins/Instruction/MIPS64/EmulateInstructionMIPS64.cpp index d75cb3135763..f09aba0f0cd9 100644 --- a/lldb/source/Plugins/Instruction/MIPS64/EmulateInstructionMIPS64.cpp +++ b/lldb/source/Plugins/Instruction/MIPS64/EmulateInstructionMIPS64.cpp @@ -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::EmulateInstructionMIPS64 (const lldb_private::ArchSpec * 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::EmulateInstructionMIPS64 (const lldb_private::ArchSpec LLVMInitializeMipsDisassembler (); target = llvm::TargetRegistry::lookupTarget (triple.getTriple(), Error); } +#endif assert (target);