diff --git a/utils/perf-training/perf-helper.py b/utils/perf-training/perf-helper.py index 5d1c03332d6e548d05dabcb7397eb2b37a36fd3d..cbc31319f0cc1c3e4dcae1c35bd6f8b64d8f3c15 100644 --- a/utils/perf-training/perf-helper.py +++ b/utils/perf-training/perf-helper.py @@ -152,12 +152,9 @@ def cc1(args): # clear the profile file env, so that we don't generate profdata # when capturing the cc1 command - handle, profraw_file = tempfile.mkstemp() - os.close(handle) cc1_env = test_env - cc1_env["LLVM_PROFILE_FILE"] = profraw_file + cc1_env["LLVM_PROFILE_FILE"] = os.devnull cc1_cmd = get_cc1_command_for_args(cmd, cc1_env) - os.remove(profraw_file) subprocess.check_call(cc1_cmd) return 0;