]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm/tools/llvm-mca/PipelinePrinter.cpp
Merge llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp
[FreeBSD/FreeBSD.git] / contrib / llvm / tools / llvm-mca / PipelinePrinter.cpp
1 //===--------------------- PipelinePrinter.cpp ------------------*- C++ -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 /// \file
10 ///
11 /// This file implements the PipelinePrinter interface.
12 ///
13 //===----------------------------------------------------------------------===//
14
15 #include "PipelinePrinter.h"
16 #include "Views/View.h"
17
18 namespace llvm {
19 namespace mca {
20
21 void PipelinePrinter::printReport(llvm::raw_ostream &OS) const {
22   for (const auto &V : Views)
23     V->printView(OS);
24 }
25 } // namespace mca.
26 } // namespace llvm