aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineFunction.cpp
diff options
context:
space:
mode:
authorAndrew Monshizadeh <amonshiz@gmail.com>2020-03-06 14:16:17 -0800
committerReid Kleckner <rnk@google.com>2020-03-06 14:34:56 -0800
commit3669f0ed4f962f253baa1c08256a3660aafbf9f1 (patch)
tree8fd657be486fdda070c7bc51c8b2c70200c8e3b6 /llvm/lib/CodeGen/MachineFunction.cpp
parentd43fcd0c0410d474a947cf51a3c67aa2e8d5a711 (diff)
downloadllvm-3669f0ed4f962f253baa1c08256a3660aafbf9f1.zip
llvm-3669f0ed4f962f253baa1c08256a3660aafbf9f1.tar.gz
llvm-3669f0ed4f962f253baa1c08256a3660aafbf9f1.tar.bz2
Refactor TimeProfiler write methods (NFC)
Added a write method for TimeTrace that takes two strings representing file names. The first is any file name that may have been provided by the user via `time-trace-file` flag, and the second is a fallback that should be configured by the caller. This method makes it cleaner to write the trace output because there is no longer a need to check file names at the caller and simplifies future TimeTrace usages. Reviewed By: modocache Differential Revision: https://reviews.llvm.org/D74514
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
0 files changed, 0 insertions, 0 deletions