Misha Brukman | 5dfe3a9 | 2004-06-21 16:55:25 +0000 | [diff] [blame^] | 1 | //===-- PowerPCCodeEmitter.cpp - JIT Code Emitter for PowerPC -----*- 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 "PowerPCTargetMachine.h" |
| 14 | |
| 15 | namespace llvm { |
| 16 | |
| 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 |
| 21 | /// not supported. |
| 22 | /// |
| 23 | bool PowerPCTargetMachine::addPassesToEmitMachineCode(FunctionPassManager &PM, |
| 24 | MachineCodeEmitter &MCE) { |
| 25 | return true; |
| 26 | // It should go something like this: |
| 27 | // PM.add(new Emitter(MCE)); // Machine code emitter pass for PowerPC |
| 28 | // Delete machine code for this function after emitting it: |
| 29 | // PM.add(createMachineCodeDeleter()); |
| 30 | } |
| 31 | |
| 32 | void *PowerPCJITInfo::getJITStubForFunction(Function *F, |
| 33 | MachineCodeEmitter &MCE) { |
| 34 | assert (0 && "PowerPCJITInfo::getJITStubForFunction not implemented"); |
| 35 | return 0; |
| 36 | } |
| 37 | |
| 38 | void PowerPCJITInfo::replaceMachineCodeForFunction (void *Old, void *New) { |
| 39 | assert (0 && "PowerPCJITInfo::replaceMachineCodeForFunction not implemented"); |
| 40 | } |
| 41 | |
| 42 | } // end llvm namespace |
| 43 | |