diff options
| author | Peter LaFosse <peter@vector35.com> | 2017-01-02 16:15:07 -0500 |
|---|---|---|
| committer | Peter LaFosse <peter@vector35.com> | 2017-01-02 16:15:07 -0500 |
| commit | 2421d9a6e6e86ff3f37056a68454b7437fb60860 (patch) | |
| tree | 3b41f418698d458d12c9c0862141d29a57b9bd1f /platform.cpp | |
| parent | e3fa8dcb0e4e6cb97a4b45ba1919048e5eae578d (diff) | |
Manual merging with dev
Diffstat (limited to 'platform.cpp')
| -rw-r--r-- | platform.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/platform.cpp b/platform.cpp index 9b4053db..7a6571cc 100644 --- a/platform.cpp +++ b/platform.cpp @@ -244,3 +244,12 @@ void Platform::AddRelatedPlatform(Architecture* arch, Platform* platform) { BNAddRelatedPlatform(m_object, arch->GetObject(), platform->GetObject()); } + + +Ref<Platform> Platform::GetAssociatedPlatformByAddress(uint64_t& addr) +{ + BNPlatform* platform = BNGetAssociatedPlatformByAddress(m_object, &addr); + if (!platform) + return nullptr; + return new Platform(platform); +} |
