From b7a2d2256fede467c7f50444eb3cddadcd7d34c9 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 2 Dec 2002 21:15:42 +0000 Subject: [PATCH] The hopefully final version of addPassesToEmitMachineCode which does not have any question about ownership git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4863 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Target/TargetMachine.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/include/llvm/Target/TargetMachine.h b/include/llvm/Target/TargetMachine.h index 0e80d4718a1..3d0b8d697b6 100644 --- a/include/llvm/Target/TargetMachine.h +++ b/include/llvm/Target/TargetMachine.h @@ -97,11 +97,10 @@ public: /// 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. The ownership of the MCE is not transfered to the backend - /// pass... the caller of this method should delete it. + /// not supported. /// virtual bool addPassesToEmitMachineCode(PassManager &PM, - MachineCodeEmitter *MCE) { + MachineCodeEmitter &MCE) { return true; } };