summaryrefslogtreecommitdiff
path: root/function.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 /function.cpp
parent95c8fa5b0cea3daa4dba774a2dab612c3d3fe39f (diff)
Add optional type to define as in Function::ApplyImportedTypes and BinaryView::DefineImportedFunction APIs
Diffstat (limited to 'function.cpp')
-rw-r--r--function.cpp4
1 files changed, 2 insertions, 2 deletions
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<std::set<uint32_t>>& clobb
}
-void Function::ApplyImportedTypes(Symbol* sym)
+void Function::ApplyImportedTypes(Symbol* sym, Ref<Type> type)
{
- BNApplyImportedTypes(m_object, sym->GetObject());
+ BNApplyImportedTypes(m_object, sym->GetObject(), type ? type->GetObject() : nullptr);
}