summaryrefslogtreecommitdiff
path: root/lldb/source/Target/Target.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Target/Target.cpp')
-rw-r--r--lldb/source/Target/Target.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/lldb/source/Target/Target.cpp b/lldb/source/Target/Target.cpp
index 242d2eaec2a1..a788bad88b29 100644
--- a/lldb/source/Target/Target.cpp
+++ b/lldb/source/Target/Target.cpp
@@ -4490,6 +4490,20 @@ const char *TargetProperties::GetDisassemblyFlavor() const {
return return_value;
}
+const char *TargetProperties::GetDisassemblyCPU() const {
+ const uint32_t idx = ePropertyDisassemblyCPU;
+ llvm::StringRef str = GetPropertyAtIndexAs<llvm::StringRef>(
+ idx, g_target_properties[idx].default_cstr_value);
+ return str.empty() ? nullptr : str.data();
+}
+
+const char *TargetProperties::GetDisassemblyFeatures() const {
+ const uint32_t idx = ePropertyDisassemblyFeatures;
+ llvm::StringRef str = GetPropertyAtIndexAs<llvm::StringRef>(
+ idx, g_target_properties[idx].default_cstr_value);
+ return str.empty() ? nullptr : str.data();
+}
+
InlineStrategy TargetProperties::GetInlineStrategy() const {
const uint32_t idx = ePropertyInlineStrategy;
return GetPropertyAtIndexAs<InlineStrategy>(