From: LLVM Packaging Team Date: Sat, 7 Mar 2020 00:01:35 +0000 (+0000) Subject: debug-jit-path X-Git-Tag: archive/raspbian/1%9.0.1-10+rpi1^2~66 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=0f1c781366c9610c3c3720e3354fe16fde5002aa;p=llvm-toolchain-9.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 5606421a3..5957ed63f 100644 --- a/llvm/lib/ExecutionEngine/PerfJITEvents/PerfJITEventListener.cpp +++ b/llvm/lib/ExecutionEngine/PerfJITEvents/PerfJITEventListener.cpp @@ -300,8 +300,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/";