From 8844a0ba898a3a1db7f5fd91ecf6a5402e3d51a0 Mon Sep 17 00:00:00 2001 From: Brian Gaeke Date: Wed, 13 Aug 2003 18:17:27 +0000 Subject: addPassesToJITCompile and addPassesToEmitMachineCode now take a FunctionPassManager, to support function-at-a-time compilation and emission of code. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7821 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Target/TargetMachine.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'include/llvm/Target') diff --git a/include/llvm/Target/TargetMachine.h b/include/llvm/Target/TargetMachine.h index 09bfca7ed2..11886db3f5 100644 --- a/include/llvm/Target/TargetMachine.h +++ b/include/llvm/Target/TargetMachine.h @@ -19,6 +19,7 @@ class TargetCacheInfo; class TargetOptInfo; class MachineCodeEmitter; class MRegisterInfo; +class FunctionPassManager; class PassManager; class Pass; @@ -79,7 +80,7 @@ public: /// implement a fast dynamic compiler for this target. Return true if this is /// not supported for this target. /// - virtual bool addPassesToJITCompile(PassManager &PM) { return true; } + virtual bool addPassesToJITCompile(FunctionPassManager &PM) { return true; } /// addPassesToEmitAssembly - Add passes to the specified pass manager to get /// assembly langage code emitted. Typically this will involve several steps @@ -91,12 +92,12 @@ public: } /// addPassesToEmitMachineCode - Add passes to the specified pass manager to - /// get machine code emitted. This uses a MAchineCodeEmitter object to handle + /// get machine code emitted. This uses a MachineCodeEmitter object to handle /// actually outputting the machine code and resolving things like the address /// of functions. This method should returns true if machine code emission is /// not supported. /// - virtual bool addPassesToEmitMachineCode(PassManager &PM, + virtual bool addPassesToEmitMachineCode(FunctionPassManager &PM, MachineCodeEmitter &MCE) { return true; } -- cgit v1.2.3