Deleted Added
full compact
Statistic.cpp (198090) Statistic.cpp (202375)
1//===-- Statistic.cpp - Easy way to expose stats information --------------===//
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 unchanged lines hidden (view full) ---

18// static Statistic NumInstEliminated("GCSE", "Number of instructions killed");
19//
20// Later, in the code: ++NumInstEliminated;
21//
22//===----------------------------------------------------------------------===//
23
24#include "llvm/ADT/Statistic.h"
25#include "llvm/Support/CommandLine.h"
1//===-- Statistic.cpp - Easy way to expose stats information --------------===//
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 unchanged lines hidden (view full) ---

18// static Statistic NumInstEliminated("GCSE", "Number of instructions killed");
19//
20// Later, in the code: ++NumInstEliminated;
21//
22//===----------------------------------------------------------------------===//
23
24#include "llvm/ADT/Statistic.h"
25#include "llvm/Support/CommandLine.h"
26#include "llvm/Support/Debug.h"
26#include "llvm/Support/ManagedStatic.h"
27#include "llvm/Support/raw_ostream.h"
28#include "llvm/System/Mutex.h"
29#include "llvm/ADT/StringExtras.h"
30#include <algorithm>
31#include <cstring>
32using namespace llvm;
33

--- 88 unchanged lines hidden (view full) ---

122 << std::string(MaxNameLen-std::strlen(Stats[i]->getName()), ' ')
123 << " - " << Stats[i]->getDesc() << "\n";
124
125 }
126
127 OutStream << '\n'; // Flush the output stream...
128 OutStream.flush();
129
27#include "llvm/Support/ManagedStatic.h"
28#include "llvm/Support/raw_ostream.h"
29#include "llvm/System/Mutex.h"
30#include "llvm/ADT/StringExtras.h"
31#include <algorithm>
32#include <cstring>
33using namespace llvm;
34

--- 88 unchanged lines hidden (view full) ---

123 << std::string(MaxNameLen-std::strlen(Stats[i]->getName()), ' ')
124 << " - " << Stats[i]->getDesc() << "\n";
125
126 }
127
128 OutStream << '\n'; // Flush the output stream...
129 OutStream.flush();
130
130 if (&OutStream != &outs() && &OutStream != &errs())
131 if (&OutStream != &outs() && &OutStream != &errs() && &OutStream != &dbgs())
131 delete &OutStream; // Close the file.
132}
132 delete &OutStream; // Close the file.
133}