summaryrefslogtreecommitdiff
path: root/binaryview.cpp
diff options
context:
space:
mode:
authorPeter LaFosse <peter@vector35.com>2020-05-28 09:49:16 -0400
committerPeter LaFosse <peter@vector35.com>2020-05-28 11:27:33 -0400
commit1f8ca3f77de08b5c581693153bf1ef580c912a0e (patch)
tree8a9c3d33c730513b1d16f7dbc15db73fd188b848 /binaryview.cpp
parent95c8fa5b0cea3daa4dba774a2dab612c3d3fe39f (diff)
Add optional type to define as in Function::ApplyImportedTypes and BinaryView::DefineImportedFunction APIs
Diffstat (limited to 'binaryview.cpp')
-rw-r--r--binaryview.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/binaryview.cpp b/binaryview.cpp
index 30aeeae8..24a50c11 100644
--- a/binaryview.cpp
+++ b/binaryview.cpp
@@ -2034,9 +2034,9 @@ void BinaryView::UndefineUserSymbol(Ref<Symbol> sym)
}
-void BinaryView::DefineImportedFunction(Ref<Symbol> importAddressSym, Ref<Function> func)
+void BinaryView::DefineImportedFunction(Ref<Symbol> importAddressSym, Ref<Function> func, Ref<Type> type)
{
- BNDefineImportedFunction(m_object, importAddressSym->GetObject(), func->GetObject());
+ BNDefineImportedFunction(m_object, importAddressSym->GetObject(), func->GetObject(), type ? type->GetObject() : nullptr);
}