parent
							
								
									bd5c8b9be9
								
							
						
					
					
						commit
						5bf047e5c4
					
				| 
						 | 
					@ -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);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue