From 3098871098535217641117052875831268461095 Mon Sep 17 00:00:00 2001 From: Glenn Smith Date: Tue, 21 Mar 2023 17:29:10 -0400 Subject: DebugInfo: Make datavar types have confidence --- rust/src/types.rs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'rust/src/types.rs') diff --git a/rust/src/types.rs b/rust/src/types.rs index 6bd85d0e..11934ceb 100644 --- a/rust/src/types.rs +++ b/rust/src/types.rs @@ -2179,6 +2179,15 @@ impl DataVariableAndName { } impl DataVariableAndName { + pub fn new(address: u64, t: Conf>, auto_discovered: bool, name: S) -> Self { + Self { + address, + t, + auto_discovered, + name, + } + } + pub fn type_with_confidence(&self) -> Conf> { Conf::new(self.t.contents.clone(), self.t.confidence) } -- cgit v1.3.1