[Lldb-commits] [lldb] [TraceIntelPT]Migrate to new function template for TraceIntelPT (PR #71258)
via lldb-commits
lldb-commits at lists.llvm.org
Fri Nov 3 17:15:58 PDT 2023
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-lldb
Author: None (GeorgeHuyubo)
<details>
<summary>Changes</summary>
Easy change. Migrate to new template function call.
More context: https://github.com/llvm/llvm-project/commit/6f8b33f6dfd0a0f8d2522b6c832bd6298ae2f3f3
---
Full diff: https://github.com/llvm/llvm-project/pull/71258.diff
1 Files Affected:
- (modified) lldb/source/Plugins/Trace/intel-pt/TraceIntelPT.cpp (+4-4)
``````````diff
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() {
``````````
</details>
https://github.com/llvm/llvm-project/pull/71258
More information about the lldb-commits
mailing list