From 1f8ca3f77de08b5c581693153bf1ef580c912a0e Mon Sep 17 00:00:00 2001 From: Peter LaFosse Date: Thu, 28 May 2020 09:49:16 -0400 Subject: Add optional type to define as in Function::ApplyImportedTypes and BinaryView::DefineImportedFunction APIs --- function.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'function.cpp') diff --git a/function.cpp b/function.cpp index e4e8af17..fd3760b4 100644 --- a/function.cpp +++ b/function.cpp @@ -869,9 +869,9 @@ void Function::SetClobberedRegisters(const Confidence>& clobb } -void Function::ApplyImportedTypes(Symbol* sym) +void Function::ApplyImportedTypes(Symbol* sym, Ref type) { - BNApplyImportedTypes(m_object, sym->GetObject()); + BNApplyImportedTypes(m_object, sym->GetObject(), type ? type->GetObject() : nullptr); } -- cgit v1.3.1