diff options
author | Greg Clayton <gclayton@apple.com> | 2011-09-17 07:23:18 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2011-09-17 07:23:18 +0000 |
commit | a2eee184e02ce94472b9ce6849b55207baef4fe3 (patch) | |
tree | eb1d291a4978a9ec2595776849b31d4cdcf53e61 /lldb/source/Core/Module.cpp | |
parent | 747bcb03d25144951e24d957fc667bb497c88ed9 (diff) | |
download | bcm5719-llvm-a2eee184e02ce94472b9ce6849b55207baef4fe3.tar.gz bcm5719-llvm-a2eee184e02ce94472b9ce6849b55207baef4fe3.zip |
Removed the function:
ModuleSP
Module::GetSP();
Since we are now using intrusive ref counts, we can easily turn any
pointer to a module into a shared pointer just by assigning it.
llvm-svn: 139984
Diffstat (limited to 'lldb/source/Core/Module.cpp')
-rw-r--r-- | lldb/source/Core/Module.cpp | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/lldb/source/Core/Module.cpp b/lldb/source/Core/Module.cpp index 2786600b380..66195780020 100644 --- a/lldb/source/Core/Module.cpp +++ b/lldb/source/Core/Module.cpp @@ -128,13 +128,6 @@ Module::~Module() } -ModuleSP -Module::GetSP () const -{ - ModuleSP module_sp(const_cast<Module*>(this)); - return module_sp; -} - const lldb_private::UUID& Module::GetUUID() { @@ -177,8 +170,8 @@ Module::ParseAllDebugSymbols() if (num_comp_units == 0) return; - TargetSP null_target; - SymbolContext sc(null_target, GetSP()); + SymbolContext sc; + sc.module_sp = this; uint32_t cu_idx; SymbolVendor *symbols = GetSymbolVendor (); @@ -212,7 +205,7 @@ Module::ParseAllDebugSymbols() void Module::CalculateSymbolContext(SymbolContext* sc) { - sc->module_sp = GetSP(); + sc->module_sp = this; } Module * @@ -282,7 +275,7 @@ Module::ResolveSymbolContextForAddress (const Address& so_addr, uint32_t resolve { // If the section offset based address resolved itself, then this // is the right module. - sc.module_sp = GetSP(); + sc.module_sp = this; resolved_flags |= eSymbolContextModule; // Resolve the compile unit, function, block, line table or line @@ -384,7 +377,7 @@ Module::FindCompileUnits (const FileSpec &path, const uint32_t start_size = sc_list.GetSize(); const uint32_t num_compile_units = GetNumCompileUnits(); SymbolContext sc; - sc.module_sp = GetSP(); + sc.module_sp = this; const bool compare_directory = path.GetDirectory(); for (uint32_t i=0; i<num_compile_units; ++i) { |