diff options
author | Pavel Labath <pavel@labath.sk> | 2019-07-26 07:03:28 +0000 |
---|---|---|
committer | Pavel Labath <pavel@labath.sk> | 2019-07-26 07:03:28 +0000 |
commit | 84a6856928a27afb463f7ba70dc807dbafc83747 (patch) | |
tree | e789e1ef8d5190be227cc86939b071a0740905ab /lldb/unittests/Target/ModuleCacheTest.cpp | |
parent | 3c3a76527e4e7a52eee68bb16e1c3a56c55e7eff (diff) | |
download | bcm5719-llvm-84a6856928a27afb463f7ba70dc807dbafc83747.tar.gz bcm5719-llvm-84a6856928a27afb463f7ba70dc807dbafc83747.zip |
SymbolVendor: Move Symtab construction into the SymbolFile
Summary:
Instead of having SymbolVendor coordinate Symtab construction between
Symbol and Object files, make the SymbolVendor function a passthrough,
and put all of the logic into the SymbolFile.
Reviewers: clayborg, JDevlieghere, jingham, espindola
Subscribers: emaste, mgorny, arichardson, MaskRay, lldb-commits
Differential Revision: https://reviews.llvm.org/D65208
llvm-svn: 367086
Diffstat (limited to 'lldb/unittests/Target/ModuleCacheTest.cpp')
-rw-r--r-- | lldb/unittests/Target/ModuleCacheTest.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lldb/unittests/Target/ModuleCacheTest.cpp b/lldb/unittests/Target/ModuleCacheTest.cpp index 9678bb078ce..b754d14b6f8 100644 --- a/lldb/unittests/Target/ModuleCacheTest.cpp +++ b/lldb/unittests/Target/ModuleCacheTest.cpp @@ -5,6 +5,7 @@ #include "llvm/Support/Path.h" #include "Plugins/ObjectFile/ELF/ObjectFileELF.h" +#include "Plugins/SymbolFile/Symtab/SymbolFileSymtab.h" #include "TestingSupport/TestUtilities.h" #include "lldb/Core/Module.h" #include "lldb/Core/ModuleSpec.h" @@ -69,12 +70,14 @@ void ModuleCacheTest::SetUpTestCase() { FileSystem::Initialize(); HostInfo::Initialize(); ObjectFileELF::Initialize(); + SymbolFileSymtab::Initialize(); s_cache_dir = HostInfo::GetProcessTempDir(); s_test_executable = GetInputFilePath(module_name); } void ModuleCacheTest::TearDownTestCase() { + SymbolFileSymtab::Terminate(); ObjectFileELF::Terminate(); HostInfo::Terminate(); FileSystem::Terminate(); |