diff options
| author | Peter LaFosse <peter@vector35.com> | 2021-09-03 11:12:56 -0400 |
|---|---|---|
| committer | Peter LaFosse <peter@vector35.com> | 2021-09-06 11:46:43 -0400 |
| commit | 5c82c6036e04936e253d2031f73f8218bbed06aa (patch) | |
| tree | 7ef969a79c88e4277d495fbae1cef5131d43f6ec /type.cpp | |
| parent | d28dc76f738c1b3c6469213c2582ca7680b8fefe (diff) | |
Commonize _to_core_struct/_from_core_struct
Improve implementation of immutable_copy/mutable_copy
Diffstat (limited to 'type.cpp')
| -rw-r--r-- | type.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -1157,6 +1157,16 @@ Confidence<Ref<Type>> TypeBuilder::GetChildType() const } +TypeBuilder& TypeBuilder::SetChildType(const Confidence<Ref<Type>>& child) +{ + BNTypeWithConfidence childType; + childType.type = child->GetObject(); + childType.confidence = child.GetConfidence(); + BNTypeBuilderSetChildType(m_object, &childType); + return *this; +} + + Confidence<Ref<CallingConvention>> TypeBuilder::GetCallingConvention() const { BNCallingConventionWithConfidence cc = BNGetTypeBuilderCallingConvention(m_object); |
