[llvm] [llvm-profgen] Remove temporary perf script files (PR #86668)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 26 09:13:28 PDT 2024
================
@@ -375,6 +376,9 @@ PerfScriptReader::convertPerfDataToTrace(ProfiledBinary *Binary,
StringRef(ErrorFile)}; // Stderr
sys::ExecuteAndWait(PerfPath, ScriptMMapArgs, std::nullopt, Redirects);
+ PerfScriptReader::markTempFile(PerfTraceFile);
+ PerfScriptReader::markTempFile(ErrorFile);
----------------
WenleiHe wrote:
nit: I would slightly prefer we do "createTempFile" instead of "createFile" + "MarkTemp". no strong opinion though.
https://github.com/llvm/llvm-project/pull/86668
More information about the llvm-commits
mailing list