blob: f2256a19c468193e55da470f7de84cc13dd00771 [file] [log] [blame]
Misha Brukmanc0f64202004-08-11 00:10:41 +00001//===-- PPC64CodeEmitter.cpp - JIT Code Emitter for PPC64 -----*- C++ -*-=//
2//
3// The LLVM Compiler Infrastructure
4//
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.
7//
8//===----------------------------------------------------------------------===//
9//
10//
11//===----------------------------------------------------------------------===//
12
13#include "PPC64JITInfo.h"
14#include "PPC64TargetMachine.h"
15
16namespace llvm {
17
18/// addPassesToEmitMachineCode - Add passes to the specified pass manager to get
19/// machine code emitted. This uses a MachineCodeEmitter object to handle
20/// actually outputting the machine code and resolving things like the address
21/// of functions. This method should returns true if machine code emission is
22/// not supported.
23///
24bool PPC64TargetMachine::addPassesToEmitMachineCode(FunctionPassManager &PM,
25 MachineCodeEmitter &MCE) {
26 return true;
27 // It should go something like this:
28 // PM.add(new Emitter(MCE)); // Machine code emitter pass for PPC64
29 // Delete machine code for this function after emitting it:
30 // PM.add(createMachineCodeDeleter());
31}
32
33void *PPC64JITInfo::getJITStubForFunction(Function *F,
34 MachineCodeEmitter &MCE) {
35 assert (0 && "PPC64JITInfo::getJITStubForFunction not implemented");
36 return 0;
37}
38
39void PPC64JITInfo::replaceMachineCodeForFunction (void *Old, void *New) {
40 assert (0 && "PPC64JITInfo::replaceMachineCodeForFunction not implemented");
41}
42
43} // end llvm namespace
44