Skip to content

Commit 1567174

Browse files
committed
--wip-- [skip ci]
1 parent e55e378 commit 1567174

File tree

1 file changed

+2
-18
lines changed

1 file changed

+2
-18
lines changed

lldb/unittests/Core/ModuleTest.cpp

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,9 @@ TEST(ModuleTest, FindFunctionsCppMangledName) {
7272
}
7373
};
7474
SubsystemRAII<FileSystem, HostInfo, ObjectFileELF, SymbolFileSymtab,
75-
CPlusPlusLanguage, platform_linux::PlatformLinux,
76-
MockLanguageWithBogusLookupInfo>
77-
subsystems;
75+
CPlusPlusLanguage,
76+
MockLanguageWithBogusLookupInfo> subsystems;
7877

79-
ArchSpec arch("x86_64-pc-linux");
80-
Platform::SetHostPlatform(
81-
platform_linux::PlatformLinux::CreateInstance(true, &arch));
8278

8379
std::call_once(TestUtilities::g_debugger_initialize_flag,
8480
[]() { Debugger::Initialize(nullptr); });
@@ -108,19 +104,7 @@ TEST(ModuleTest, FindFunctionsCppMangledName) {
108104
)");
109105
ASSERT_THAT_EXPECTED(ExpectedFile, llvm::Succeeded());
110106

111-
DebuggerSP debugger_sp = Debugger::CreateInstance();
112-
ASSERT_TRUE(debugger_sp);
113-
114-
TargetSP target_sp;
115-
PlatformSP platform_sp;
116-
117-
Status error = debugger_sp->GetTargetList().CreateTarget(
118-
*debugger_sp, "", arch, eLoadDependentsNo, platform_sp, target_sp);
119-
ASSERT_TRUE(error.Success());
120-
ASSERT_TRUE(target_sp);
121-
122107
auto module_sp = std::make_shared<Module>(ExpectedFile->moduleSpec());
123-
target_sp->GetImages().Append(module_sp);
124108

125109
// Verify both C++ and our mock language are registered.
126110
Language *cpp_lang = Language::FindPlugin(lldb::eLanguageTypeC_plus_plus);

0 commit comments

Comments
 (0)