[Lldb-commits] [lldb] 10ec3bc - [TraceIntelPT]Migrate to new function template for TraceIntelPT (#71258)

via lldb-commits lldb-commits at lists.llvm.org
Mon Nov 6 09:49:33 PST 2023


Author: GeorgeHuyubo
Date: 2023-11-06T09:49:29-08:00
New Revision: 10ec3bc9773e7e31255d5d3997f3966354a67d0d

URL: https://github.com/llvm/llvm-project/commit/10ec3bc9773e7e31255d5d3997f3966354a67d0d
DIFF: https://github.com/llvm/llvm-project/commit/10ec3bc9773e7e31255d5d3997f3966354a67d0d.diff

LOG: [TraceIntelPT]Migrate to new function template for TraceIntelPT (#71258)

Easy change. Migrate to new template function call.
More context:
https://github.com/llvm/llvm-project/commit/6f8b33f6dfd0a0f8d2522b6c832bd6298ae2f3f3

Added: 
    

Modified: 
    lldb/source/Plugins/Trace/intel-pt/TraceIntelPT.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/source/Plugins/Trace/intel-pt/TraceIntelPT.cpp b/lldb/source/Plugins/Trace/intel-pt/TraceIntelPT.cpp
index 015faa89fcfada8..72e9948ffe8148f 100644
--- a/lldb/source/Plugins/Trace/intel-pt/TraceIntelPT.cpp
+++ b/lldb/source/Plugins/Trace/intel-pt/TraceIntelPT.cpp
@@ -60,14 +60,14 @@ TraceIntelPT::PluginProperties::PluginProperties() : Properties() {
 uint64_t
 TraceIntelPT::PluginProperties::GetInfiniteDecodingLoopVerificationThreshold() {
   const uint32_t idx = ePropertyInfiniteDecodingLoopVerificationThreshold;
-  return m_collection_sp->GetPropertyAtIndexAsUInt64(
-      nullptr, idx, g_traceintelpt_properties[idx].default_uint_value);
+  return GetPropertyAtIndexAs<uint64_t>(
+      idx, g_traceintelpt_properties[idx].default_uint_value);
 }
 
 uint64_t TraceIntelPT::PluginProperties::GetExtremelyLargeDecodingThreshold() {
   const uint32_t idx = ePropertyExtremelyLargeDecodingThreshold;
-  return m_collection_sp->GetPropertyAtIndexAsUInt64(
-      nullptr, idx, g_traceintelpt_properties[idx].default_uint_value);
+  return GetPropertyAtIndexAs<uint64_t>(
+      idx, g_traceintelpt_properties[idx].default_uint_value);
 }
 
 TraceIntelPT::PluginProperties &TraceIntelPT::GetGlobalProperties() {


        


More information about the lldb-commits mailing list