summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-mca/Views/TimelineView.cpp
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2019-08-02 07:22:34 +0000
committerRui Ueyama <ruiu@google.com>2019-08-02 07:22:34 +0000
commit4d41c332ef57281973e5e73295a56132ae12df77 (patch)
tree2fd94fb54c00a1233ce74978d3148d250bca01cd /llvm/tools/llvm-mca/Views/TimelineView.cpp
parent206fe82be410ff8cc7619c89afdff6561275a015 (diff)
downloadbcm5719-llvm-4d41c332ef57281973e5e73295a56132ae12df77.tar.gz
bcm5719-llvm-4d41c332ef57281973e5e73295a56132ae12df77.zip
Revert r367649: Improve raw_ostream so that you can "write" colors using operator<<
This reverts commit r367649 in an attempt to unbreak Windows bots. llvm-svn: 367658
Diffstat (limited to 'llvm/tools/llvm-mca/Views/TimelineView.cpp')
-rw-r--r--llvm/tools/llvm-mca/Views/TimelineView.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/tools/llvm-mca/Views/TimelineView.cpp b/llvm/tools/llvm-mca/Views/TimelineView.cpp
index 09b6b2a3efe..fe3f16ba344 100644
--- a/llvm/tools/llvm-mca/Views/TimelineView.cpp
+++ b/llvm/tools/llvm-mca/Views/TimelineView.cpp
@@ -103,8 +103,8 @@ void TimelineView::onEvent(const HWInstructionEvent &Event) {
LastCycle = std::max(LastCycle, CurrentCycle);
}
-static raw_ostream::Color chooseColor(unsigned CumulativeCycles,
- unsigned Executions, int BufferSize) {
+static raw_ostream::Colors chooseColor(unsigned CumulativeCycles,
+ unsigned Executions, int BufferSize) {
if (CumulativeCycles && BufferSize < 0)
return raw_ostream::MAGENTA;
unsigned Size = static_cast<unsigned>(BufferSize);
@@ -120,7 +120,7 @@ static void tryChangeColor(raw_ostream &OS, unsigned Cycles,
if (!OS.has_colors())
return;
- raw_ostream::Color Color = chooseColor(Cycles, Executions, BufferSize);
+ raw_ostream::Colors Color = chooseColor(Cycles, Executions, BufferSize);
if (Color == raw_ostream::SAVEDCOLOR) {
OS.resetColor();
return;
OpenPOWER on IntegriCloud