1 //===-- SparcV8CodeEmitter.cpp - JIT Code Emitter for SparcV8 -----*- C++ -*-=//
3 // The LLVM Compiler Infrastructure
5 // This file was developed by the LLVM research group and is distributed under
6 // the University of Illinois Open Source License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
11 //===----------------------------------------------------------------------===//
13 #include "SparcV8TargetMachine.h"
17 /// addPassesToEmitMachineCode - Add passes to the specified pass manager to get
18 /// machine code emitted. This uses a MachineCodeEmitter object to handle
19 /// actually outputting the machine code and resolving things like the address
20 /// of functions. This method should returns true if machine code emission is
23 bool SparcV8TargetMachine::addPassesToEmitMachineCode(FunctionPassManager &PM,
24 MachineCodeEmitter &MCE) {
26 // It should go something like this:
27 // PM.add(new Emitter(MCE)); // Machine code emitter pass for SparcV8
28 // Delete machine code for this function after emitting it:
29 // PM.add(createMachineCodeDeleter());
32 void *SparcV8JITInfo::getJITStubForFunction(Function *F,
33 MachineCodeEmitter &MCE) {
34 assert (0 && "SparcV8JITInfo::getJITStubForFunction not implemented");
38 void SparcV8JITInfo::replaceMachineCodeForFunction (void *Old, void *New) {
39 assert (0 && "SparcV8JITInfo::replaceMachineCodeForFunction not implemented");
42 } // end llvm namespace