diff options
author | Kazu Hirata <kazu@google.com> | 2025-08-13 09:41:40 -0700 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2025-08-13 09:41:40 -0700 |
commit | 0f7788710884ed95d104423cf16e3393405ecdd1 (patch) | |
tree | 3855785db819a11b65d30909127feda15e790bc8 /llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp | |
parent | 8071d279fd97134f798699795dfb0b16747ce247 (diff) | |
download | llvm-0f7788710884ed95d104423cf16e3393405ecdd1.zip llvm-0f7788710884ed95d104423cf16e3393405ecdd1.tar.gz llvm-0f7788710884ed95d104423cf16e3393405ecdd1.tar.bz2 |
[llvm-exegesis] Fix a warning
This patch fixes:
llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp:602:6: error:
unused function 'printInstructions' [-Werror,-Wunused-function]
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, |