summaryrefslogtreecommitdiffstats
path: root/lldb/source/Expression
diff options
context:
space:
mode:
authorPavel Labath <pavel@labath.sk>2019-08-02 08:16:35 +0000
committerPavel Labath <pavel@labath.sk>2019-08-02 08:16:35 +0000
commit23f70e83594f650830764cca446fdfcba7368460 (patch)
tree59d0f7142156dceb4cb4af1d2fe8d9a18fedf8ab /lldb/source/Expression
parent9eedbc4f266d1e49d335d48c4c0f717401d927d2 (diff)
downloadbcm5719-llvm-23f70e83594f650830764cca446fdfcba7368460.tar.gz
bcm5719-llvm-23f70e83594f650830764cca446fdfcba7368460.zip
SymbolVendor: Introduce Module::GetSymbolFile
Summary: This is the next step in avoiding funneling all SymbolFile calls through the SymbolVendor. Right now, it is just a convenience function, but it allows us to update all calls to SymbolVendor functions to access the SymbolFile directly. Once all call sites have been updated, we can remove the GetSymbolVendor member function. This patch just updates the calls to GetSymbolVendor, which were calling it just so they could fetch the underlying symbol file. Other calls will be done in follow-ups. Reviewers: JDevlieghere, clayborg, jingham Subscribers: lldb-commits Differential Revision: https://reviews.llvm.org/D65435 llvm-svn: 367664
Diffstat (limited to 'lldb/source/Expression')
-rw-r--r--lldb/source/Expression/IRExecutionUnit.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/lldb/source/Expression/IRExecutionUnit.cpp b/lldb/source/Expression/IRExecutionUnit.cpp
index b98a56b6e79..14d09afbe63 100644
--- a/lldb/source/Expression/IRExecutionUnit.cpp
+++ b/lldb/source/Expression/IRExecutionUnit.cpp
@@ -658,11 +658,7 @@ FindBestAlternateMangledName(ConstString demangled,
if (!sym_ctx.module_sp)
return ConstString();
- SymbolVendor *sym_vendor = sym_ctx.module_sp->GetSymbolVendor();
- if (!sym_vendor)
- return ConstString();
-
- lldb_private::SymbolFile *sym_file = sym_vendor->GetSymbolFile();
+ lldb_private::SymbolFile *sym_file = sym_ctx.module_sp->GetSymbolFile();
if (!sym_file)
return ConstString();
OpenPOWER on IntegriCloud