summaryrefslogtreecommitdiff
path: root/function.cpp
diff options
context:
space:
mode:
authorRusty Wagner <rusty@vector35.com>2016-07-22 03:00:52 -0400
committerRusty Wagner <rusty@vector35.com>2016-07-22 03:00:52 -0400
commit13491e5eb8d50c242cf6858b111e404ea9f79239 (patch)
tree653ea1b2267ef67c1f8442516a0d9286e8fdf1ad /function.cpp
parent5e15a16c95dd3e0b48ea0b319a813720f14fec5a (diff)
Add API to set type of function
Diffstat (limited to 'function.cpp')
-rw-r--r--function.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/function.cpp b/function.cpp
index ea0fec86..55f5cffb 100644
--- a/function.cpp
+++ b/function.cpp
@@ -354,6 +354,18 @@ Ref<Type> Function::GetType() const
}
+void Function::SetAutoType(Type* type)
+{
+ BNSetFunctionAutoType(m_object, type->GetObject());
+}
+
+
+void Function::SetUserType(Type* type)
+{
+ BNSetFunctionUserType(m_object, type->GetObject());
+}
+
+
void Function::ApplyImportedTypes(Symbol* sym)
{
BNApplyImportedTypes(m_object, sym->GetObject());