just discard the debug output from the disassembler.
authorChris Lattner <sabre@nondot.org>
Tue, 22 Dec 2009 22:47:43 +0000 (22:47 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 22 Dec 2009 22:47:43 +0000 (22:47 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91933 91177308-0d34-0410-b5e6-96231b3b80d8

tools/llvm-mc/HexDisassembler.cpp

index 7435c10e92bc3d8871750cefdf4091843caa54f9..530520bde8f434f6e19c0113f4e6e05de701a5f3 100644 (file)
@@ -57,14 +57,10 @@ static bool PrintInst(const llvm::MCDisassembler &DisAsm,
   MCInst Inst;
   uint64_t Size;
   
-  std::string verboseOStr;
-  llvm::raw_string_ostream verboseOS(verboseOStr); 
-  
-  if (!DisAsm.getInstruction(Inst, Size, memoryObject, 0, verboseOS)) {
+  if (!DisAsm.getInstruction(Inst, Size, memoryObject, 0, 
+                             /*REMOVE*/ nulls())) {
     SM.PrintMessage(SMLoc::getFromPointer(Bytes[0].second),
                     "invalid instruction encoding", "error");
-    errs() << "Diagnostic log:" << '\n';
-    errs() << verboseOS.str() << '\n';
     return true;
   }