[llvm] r355587 - Add newline to interpreter debugging output
Kristof Beyls via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 7 02:14:38 PST 2019
Author: kbeyls
Date: Thu Mar 7 02:14:38 2019
New Revision: 355587
URL: http://llvm.org/viewvc/llvm-project?rev=355587&view=rev
Log:
Add newline to interpreter debugging output
When running lli --debug --force-interpreter=true the executed instructions are
printed but are missing newlines. This commit adds the missing newlines.
Patch by Andrew Brown.
Differential Revision: https://reviews.llvm.org/D57806
Modified:
llvm/trunk/lib/ExecutionEngine/Interpreter/Execution.cpp
Modified: llvm/trunk/lib/ExecutionEngine/Interpreter/Execution.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ExecutionEngine/Interpreter/Execution.cpp?rev=355587&r1=355586&r2=355587&view=diff
==============================================================================
--- llvm/trunk/lib/ExecutionEngine/Interpreter/Execution.cpp (original)
+++ llvm/trunk/lib/ExecutionEngine/Interpreter/Execution.cpp Thu Mar 7 02:14:38 2019
@@ -2112,7 +2112,7 @@ void Interpreter::run() {
// 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...
}
}
More information about the llvm-commits
mailing list