aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-mca/llvm-mca.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2021-07-09 10:30:16 -0700
committerFangrui Song <i@maskray.me>2021-07-09 10:30:16 -0700
commita2860b8b048e4a5f84586d43556d1944edbf2ace (patch)
tree1c6a7c51659a77cda4a41c80742656db18fe5a0c /llvm/tools/llvm-mca/llvm-mca.cpp
parent9a7afae4927c5a379631b538116c3796f402a970 (diff)
downloadllvm-a2860b8b048e4a5f84586d43556d1944edbf2ace.zip
llvm-a2860b8b048e4a5f84586d43556d1944edbf2ace.tar.gz
llvm-a2860b8b048e4a5f84586d43556d1944edbf2ace.tar.bz2
[llvm-mca] Fix -Wunused-private-field after D105618
Diffstat (limited to 'llvm/tools/llvm-mca/llvm-mca.cpp')
-rw-r--r--llvm/tools/llvm-mca/llvm-mca.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/tools/llvm-mca/llvm-mca.cpp b/llvm/tools/llvm-mca/llvm-mca.cpp
index 2dae2eb..a4c9528 100644
--- a/llvm/tools/llvm-mca/llvm-mca.cpp
+++ b/llvm/tools/llvm-mca/llvm-mca.cpp
@@ -579,7 +579,7 @@ int main(int argc, char **argv) {
auto P = std::make_unique<mca::Pipeline>();
P->appendStage(std::make_unique<mca::EntryStage>(S));
P->appendStage(std::make_unique<mca::InstructionTables>(SM));
- mca::PipelinePrinter Printer(*P, mca::View::OK_READABLE);
+ mca::PipelinePrinter Printer(*P);
// Create the views for this pipeline, execute, and emit a report.
if (PrintInstructionInfoView) {
@@ -614,8 +614,7 @@ int main(int argc, char **argv) {
// Create a basic pipeline simulating an out-of-order backend.
auto P = MCA.createDefaultPipeline(PO, S, *CB);
- mca::PipelinePrinter Printer(*P, PrintJson ? mca::View::OK_JSON
- : mca::View::OK_READABLE);
+ mca::PipelinePrinter Printer(*P);
// When we output JSON, we add a view that contains the instructions
// and CPU resource information.