summaryrefslogtreecommitdiff
path: root/binaryview.cpp
diff options
context:
space:
mode:
authorXusheng <xusheng@vector35.com>2020-09-18 18:35:27 +0800
committerXusheng <xusheng@vector35.com>2020-10-15 12:50:02 +0800
commitcbe3ded641a0ce4b50ae447a4426b71f3e0f0119 (patch)
tree339cff6f061f89a49a78f82626dd5601c448bf05 /binaryview.cpp
parentd77c63efc16070868bf6eb87d274bf846f4440f7 (diff)
edit current line in linear view
add CanAssemble() to architectures
Diffstat (limited to 'binaryview.cpp')
-rw-r--r--binaryview.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/binaryview.cpp b/binaryview.cpp
index 11a6c032..8e3f115a 100644
--- a/binaryview.cpp
+++ b/binaryview.cpp
@@ -2284,6 +2284,11 @@ Ref<Tag> BinaryView::CreateUserDataTag(uint64_t addr, Ref<TagType> tagType, cons
return tag;
}
+bool BinaryView::CanAssemble(Architecture* arch)
+{
+ return BNCanAssemble(m_object, arch->GetObject());
+
+}
bool BinaryView::IsNeverBranchPatchAvailable(Architecture* arch, uint64_t addr)
{