summaryrefslogtreecommitdiffstats
path: root/lldb/source/API/SBModule.cpp
diff options
context:
space:
mode:
authorEnrico Granata <egranata@apple.com>2012-09-04 18:47:54 +0000
committerEnrico Granata <egranata@apple.com>2012-09-04 18:47:54 +0000
commit3467d80ba38b194b98543d950d107cb49c822b68 (patch)
treec744d20665a52f43d34ef3b0809cb5900b738b31 /lldb/source/API/SBModule.cpp
parentd92e2bc2e9b11e9ced2fddac25620b82de2f218a (diff)
downloadbcm5719-llvm-3467d80ba38b194b98543d950d107cb49c822b68.tar.gz
bcm5719-llvm-3467d80ba38b194b98543d950d107cb49c822b68.zip
<rdar://problem/11485744> Implement important data formatters in C++. Have the Objective-C language runtime plugin expose class descriptors objects akin to the objc_runtime.py Pythonic implementation. Rewrite the data formatters for some core Cocoa classes in C++ instead of Python.
llvm-svn: 163155
Diffstat (limited to 'lldb/source/API/SBModule.cpp')
-rw-r--r--lldb/source/API/SBModule.cpp18
1 files changed, 8 insertions, 10 deletions
diff --git a/lldb/source/API/SBModule.cpp b/lldb/source/API/SBModule.cpp
index 44ac2d3b1e8..446a69331d9 100644
--- a/lldb/source/API/SBModule.cpp
+++ b/lldb/source/API/SBModule.cpp
@@ -542,17 +542,15 @@ SBModule::GetVersion (uint32_t *versions, uint32_t num_versions)
{
ModuleSP module_sp (GetSP ());
if (module_sp)
+ return module_sp->GetVersion(versions, num_versions);
+ else
{
- ObjectFile *obj_file = module_sp->GetObjectFile();
- if (obj_file)
- return obj_file->GetVersion (versions, num_versions);
- }
-
- if (versions && num_versions)
- {
- for (uint32_t i=0; i<num_versions; ++i)
- versions[i] = UINT32_MAX;
+ if (versions && num_versions)
+ {
+ for (uint32_t i=0; i<num_versions; ++i)
+ versions[i] = UINT32_MAX;
+ }
+ return 0;
}
- return 0;
}
OpenPOWER on IntegriCloud