summaryrefslogtreecommitdiff
path: root/lib/MC/MCDisassembler
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2011-09-21 00:25:23 +0000
committerOwen Anderson <resistor@mac.com>2011-09-21 00:25:23 +0000
commit317eaf19937813d630166bfec7b933a98ea89aa5 (patch)
tree32ad1598b803064d80b4277c2791ac76808cdb87 /lib/MC/MCDisassembler
parenteeef9e81802e7753236ed2087c6d7e9bcf0190cf (diff)
downloadllvm-317eaf19937813d630166bfec7b933a98ea89aa5.tar.gz
llvm-317eaf19937813d630166bfec7b933a98ea89aa5.tar.bz2
llvm-317eaf19937813d630166bfec7b933a98ea89aa5.tar.xz
In the disassembler C API, be careful not to confuse the comment streamer that the disassembler outputs annotations on with the streamer that the InstPrinter will print them on.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140217 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/MCDisassembler')
-rw-r--r--lib/MC/MCDisassembler/Disassembler.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/MC/MCDisassembler/Disassembler.cpp b/lib/MC/MCDisassembler/Disassembler.cpp
index 14fab08b87..07e005627f 100644
--- a/lib/MC/MCDisassembler/Disassembler.cpp
+++ b/lib/MC/MCDisassembler/Disassembler.cpp
@@ -82,8 +82,6 @@ LLVMDisasmContextRef LLVMCreateDisasm(const char *TripleName, void *DisInfo,
Ctx, DisAsm, IP);
assert(DC && "Allocation failure!");
- IP->setCommentStream(DC->CommentStream);
-
return DC;
}