aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/Timer.cpp
diff options
context:
space:
mode:
authorDaniel Sanders <daniel_l_sanders@apple.com>2024-10-30 19:11:27 -0700
committerDaniel Sanders <daniel_l_sanders@apple.com>2024-10-31 11:22:22 -0700
commit5b356f27a00a588d6e872a083b6eefc55d5b6183 (patch)
tree7af1f9583c39efabbe77439442f8619d8a7f58bc /llvm/lib/Support/Timer.cpp
parent93d12d48810578beebff94906059ab0a95604869 (diff)
downloadllvm-5b356f27a00a588d6e872a083b6eefc55d5b6183.zip
llvm-5b356f27a00a588d6e872a083b6eefc55d5b6183.tar.gz
llvm-5b356f27a00a588d6e872a083b6eefc55d5b6183.tar.bz2
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.
Diffstat (limited to 'llvm/lib/Support/Timer.cpp')
-rw-r--r--llvm/lib/Support/Timer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/Timer.cpp b/llvm/lib/Support/Timer.cpp
index c1b0fdb..634f27f 100644
--- a/llvm/lib/Support/Timer.cpp
+++ b/llvm/lib/Support/Timer.cpp
@@ -93,7 +93,7 @@ void llvm::initTimerOptions() {
*SortTimers;
}
-std::unique_ptr<raw_fd_ostream> llvm::CreateInfoOutputFile() {
+std::unique_ptr<raw_ostream> llvm::CreateInfoOutputFile() {
const std::string &OutputFilename = getLibSupportInfoOutputFilename();
if (OutputFilename.empty())
return std::make_unique<raw_fd_ostream>(2, false); // stderr.