[llvm] [llvm-profgen] Remove temporary perf script files (PR #86668)

Lei Wang via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 26 11:01:01 PDT 2024


================
@@ -189,5 +189,7 @@ int main(int argc, const char *argv[]) {
     Generator->write();
   }
 
+  PerfScriptReader::removeTempFiles();
+
   return EXIT_SUCCESS;
----------------
wlei-llvm wrote:

Nit: there are more "return EXIT_SUCCESS;"  in other places, may be useful to also cover them(like use/call a wrapper function)? though other usages are not commonly used..

https://github.com/llvm/llvm-project/pull/86668


More information about the llvm-commits mailing list