summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2014-05-29 17:52:46 +0000
committerGreg Clayton <gclayton@apple.com>2014-05-29 17:52:46 +0000
commit36d7c89497584fb510308fb62b245c389880bfed (patch)
treea0f1283c13fcf85e2f47b6096a3e02209bdd3b03
parent07630933bc9831ec94954a588fda9febca10ae23 (diff)
downloadbcm5719-llvm-36d7c89497584fb510308fb62b245c389880bfed.tar.gz
bcm5719-llvm-36d7c89497584fb510308fb62b245c389880bfed.zip
Fixed the Module::Module(ModuleSpec) constructor to properly copy the file offset and object file mod time from the actual module specifications so we will always be able to directly load the image we care about when calling Module::GetObjectFile().
llvm-svn: 209833
-rw-r--r--lldb/source/Core/Module.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Core/Module.cpp b/lldb/source/Core/Module.cpp
index 4cf10e9d51f..cda6f277847 100644
--- a/lldb/source/Core/Module.cpp
+++ b/lldb/source/Core/Module.cpp
@@ -197,8 +197,8 @@ Module::Module (const ModuleSpec &module_spec) :
m_platform_file = module_spec.GetPlatformFileSpec();
m_symfile_spec = module_spec.GetSymbolFileSpec();
m_object_name = module_spec.GetObjectName();
- m_object_offset = module_spec.GetObjectOffset();
- m_object_mod_time = module_spec.GetObjectModificationTime();
+ m_object_offset = matching_module_spec.GetObjectOffset();
+ m_object_mod_time = matching_module_spec.GetObjectModificationTime();
}
OpenPOWER on IntegriCloud