[PATCH] D57806: [Interpreter] Add newline to interpreter debugging output

Andrew Brown via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 5 20:25:42 PST 2019


abrown created this revision.
abrown added a reviewer: lhames.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.

When running `lli --debug --force-interpreter=true` the executed instructions are printed but are missing newlines; this patch adds the missing newlines.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D57806

Files:
  llvm/lib/ExecutionEngine/Interpreter/Execution.cpp


Index: llvm/lib/ExecutionEngine/Interpreter/Execution.cpp
===================================================================
--- llvm/lib/ExecutionEngine/Interpreter/Execution.cpp
+++ llvm/lib/ExecutionEngine/Interpreter/Execution.cpp
@@ -2112,7 +2112,7 @@
     // Track the number of dynamic instructions executed.
     ++NumDynamicInsts;
 
-    LLVM_DEBUG(dbgs() << "About to interpret: " << I);
+    LLVM_DEBUG(dbgs() << "About to interpret: " << I << "\n");
     visit(I);   // Dispatch to one of the visit* methods...
   }
 }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D57806.185480.patch
Type: text/x-patch
Size: 532 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190206/eba79000/attachment.bin>


More information about the llvm-commits mailing list