From: LLVM Packaging Team Date: Wed, 6 Jan 2021 19:16:26 +0000 (+0000) Subject: debug-jit-path X-Git-Tag: archive/raspbian/1%11.0.1-2+rpi1^2~58 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=3215d6ddba121b9c9368a604216d04aacc891f38;p=llvm-toolchain-11.git debug-jit-path =================================================================== Gbp-Pq: Name debug-jit-path.diff --- diff --git a/llvm/lib/ExecutionEngine/PerfJITEvents/PerfJITEventListener.cpp b/llvm/lib/ExecutionEngine/PerfJITEvents/PerfJITEventListener.cpp index d4c715cc5..41dc31f8f 100644 --- a/llvm/lib/ExecutionEngine/PerfJITEvents/PerfJITEventListener.cpp +++ b/llvm/lib/ExecutionEngine/PerfJITEvents/PerfJITEventListener.cpp @@ -301,8 +301,8 @@ bool PerfJITEventListener::InitDebuggingDir() { // search for location to dump data to if (const char *BaseDir = getenv("JITDUMPDIR")) Path.append(BaseDir); - else if (!sys::path::home_directory(Path)) - Path = "."; + else + sys::path::system_temp_directory(/*ErasedOnReboot*/ true, Path); // create debug directory Path += "/.debug/jit/";