Skip to content

Commit 5b356f2

Browse files
committed
Trivial change llvm::CreateInfoOutputFile() to return raw_ostream. NFC
This is NFC w.r.t upstream but allows us to return raw_null_ostream in our downstream fork without changing the interface.
1 parent 93d12d4 commit 5b356f2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

llvm/include/llvm/ADT/Statistic.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,8 @@ void EnableStatistics(bool DoPrintOnExit = true);
177177
/// Check if statistics are enabled.
178178
bool AreStatisticsEnabled();
179179

180-
/// Return a file stream to print our output on.
181-
std::unique_ptr<raw_fd_ostream> CreateInfoOutputFile();
180+
/// Return a stream to print our output on.
181+
std::unique_ptr<raw_ostream> CreateInfoOutputFile();
182182

183183
/// Print statistics to the file returned by CreateInfoOutputFile().
184184
void PrintStatistics();

llvm/lib/Support/Timer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ void llvm::initTimerOptions() {
9393
*SortTimers;
9494
}
9595

96-
std::unique_ptr<raw_fd_ostream> llvm::CreateInfoOutputFile() {
96+
std::unique_ptr<raw_ostream> llvm::CreateInfoOutputFile() {
9797
const std::string &OutputFilename = getLibSupportInfoOutputFilename();
9898
if (OutputFilename.empty())
9999
return std::make_unique<raw_fd_ostream>(2, false); // stderr.

0 commit comments

Comments
 (0)