[Lldb-commits] [PATCH] D130924: [NFC][trace] Update TraceIntelPTBundleSaver.cpp to accommodate FileSpec API changes
Jakob Johnson via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Mon Aug 1 11:52:45 PDT 2022
This revision was automatically updated to reflect the committed changes.
Closed by commit rG9bab358e3922: [trace][intelpt] Update TraceIntelPTBundleSaver.cpp to accommodate FileSpec APIā¦ (authored by jj10306).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D130924/new/
https://reviews.llvm.org/D130924
Files:
lldb/source/Plugins/Trace/intel-pt/TraceIntelPTBundleSaver.cpp
Index: lldb/source/Plugins/Trace/intel-pt/TraceIntelPTBundleSaver.cpp
===================================================================
--- lldb/source/Plugins/Trace/intel-pt/TraceIntelPTBundleSaver.cpp
+++ lldb/source/Plugins/Trace/intel-pt/TraceIntelPTBundleSaver.cpp
@@ -103,7 +103,7 @@
FileSpec threads_dir = directory;
threads_dir.AppendPathComponent("threads");
- sys::fs::create_directories(threads_dir.GetCString());
+ sys::fs::create_directories(threads_dir.GetPath().c_str());
for (ThreadSP thread_sp : process.Threads()) {
lldb::tid_t tid = thread_sp->GetID();
@@ -200,7 +200,7 @@
std::vector<JSONCpu> json_cpus;
FileSpec cpus_dir = directory;
cpus_dir.AppendPathComponent("cpus");
- sys::fs::create_directories(cpus_dir.GetCString());
+ sys::fs::create_directories(cpus_dir.GetPath().c_str());
for (lldb::cpu_id_t cpu_id : trace_ipt.GetTracedCpus()) {
JSONCpu json_cpu;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D130924.449088.patch
Type: text/x-patch
Size: 925 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20220801/2bc4bdf0/attachment-0001.bin>
More information about the lldb-commits
mailing list