aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Target/TargetMachine.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-12-02 21:15:42 +0000
committerChris Lattner <sabre@nondot.org>2002-12-02 21:15:42 +0000
commitb7a2d2256fede467c7f50444eb3cddadcd7d34c9 (patch)
tree32cf373b626e535e32a96123818a971144ebf742 /include/llvm/Target/TargetMachine.h
parentf86c0e0cab34530ee2d8ffeb39b0abd89bb39a11 (diff)
downloadexternal_llvm-b7a2d2256fede467c7f50444eb3cddadcd7d34c9.zip
external_llvm-b7a2d2256fede467c7f50444eb3cddadcd7d34c9.tar.gz
external_llvm-b7a2d2256fede467c7f50444eb3cddadcd7d34c9.tar.bz2
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
Diffstat (limited to 'include/llvm/Target/TargetMachine.h')
-rw-r--r--include/llvm/Target/TargetMachine.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/llvm/Target/TargetMachine.h b/include/llvm/Target/TargetMachine.h
index 0e80d47..3d0b8d6 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;
}
};