diff options
Diffstat (limited to 'llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp')
-rw-r--r-- | llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp b/llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp index 2c9d6dc..1fd0a15 100644 --- a/llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp +++ b/llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp @@ -598,6 +598,7 @@ struct InstructionInfo { std::string HexBytes; }; +#ifndef NDEBUG // Helper function to print generated assembly snippets void printInstructions(const std::vector<InstructionInfo> &Instructions, int InitialLinesCount, int LastLinesCount) { @@ -622,6 +623,7 @@ void printInstructions(const std::vector<InstructionInfo> &Instructions, << Instructions[i].HexBytes << Instructions[i].Text << '\n'; dbgs() << "```\n"; } +#endif // NDEBUG // Function to extract and print assembly from snippet Error printAssembledSnippet(const LLVMState &State, |