A small fix in rL236696

llvm-svn: 236716
This commit is contained in:
Mohit K. Bhakkad 2015-05-07 11:43:23 +00:00
parent bd5c8b9be9
commit 5bf047e5c4
1 changed files with 4 additions and 0 deletions

View File

@ -48,6 +48,7 @@ using namespace lldb_private;
// //
//---------------------------------------------------------------------- //----------------------------------------------------------------------
#ifdef __mips__
extern "C" { extern "C" {
void LLVMInitializeMipsTargetInfo (); void LLVMInitializeMipsTargetInfo ();
void LLVMInitializeMipsTarget (); void LLVMInitializeMipsTarget ();
@ -55,6 +56,7 @@ extern "C" {
void LLVMInitializeMipsTargetMC (); void LLVMInitializeMipsTargetMC ();
void LLVMInitializeMipsDisassembler (); void LLVMInitializeMipsDisassembler ();
} }
#endif
EmulateInstructionMIPS64::EmulateInstructionMIPS64 (const lldb_private::ArchSpec &arch) : EmulateInstructionMIPS64::EmulateInstructionMIPS64 (const lldb_private::ArchSpec &arch) :
EmulateInstruction (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. * to decode the instructions so that the decoding complexity stays with LLVM.
* Initialize the MIPS targets and disassemblers. * Initialize the MIPS targets and disassemblers.
*/ */
#ifdef __mips__
if (!target) if (!target)
{ {
LLVMInitializeMipsTargetInfo (); LLVMInitializeMipsTargetInfo ();
@ -79,6 +82,7 @@ EmulateInstructionMIPS64::EmulateInstructionMIPS64 (const lldb_private::ArchSpec
LLVMInitializeMipsDisassembler (); LLVMInitializeMipsDisassembler ();
target = llvm::TargetRegistry::lookupTarget (triple.getTriple(), Error); target = llvm::TargetRegistry::lookupTarget (triple.getTriple(), Error);
} }
#endif
assert (target); assert (target);