summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-03-19 05:48:53 +0000
committerChris Lattner <sabre@nondot.org>2010-03-19 05:48:53 +0000
commit4c42a6de9f5456cc1b28f2d37db589f580f2adc7 (patch)
treedff0ce28acd1bb2e2143342eef18115ad0372472 /include
parent1e50631675df50a0701ef8b527ced63d0d535a81 (diff)
downloadllvm-4c42a6de9f5456cc1b28f2d37db589f580f2adc7.tar.gz
llvm-4c42a6de9f5456cc1b28f2d37db589f580f2adc7.tar.bz2
llvm-4c42a6de9f5456cc1b28f2d37db589f580f2adc7.tar.xz
fix an MCInstPrinter leak that jyasskin pointed out:
createAsmStreamer now takes ownership of the instprinter. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98939 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/MC/MCStreamer.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/MC/MCStreamer.h b/include/llvm/MC/MCStreamer.h
index 47befcaf6b..4b088a57d7 100644
--- a/include/llvm/MC/MCStreamer.h
+++ b/include/llvm/MC/MCStreamer.h
@@ -291,7 +291,8 @@ class TargetAsmBackend;
/// assembler.
///
/// \param InstPrint - If given, the instruction printer to use. If not given
- /// the MCInst representation will be printed.
+ /// the MCInst representation will be printed. This method takes ownership of
+ /// InstPrint.
///
/// \param CE - If given, a code emitter to use to show the instruction
/// encoding inline with the assembly.