Skip to content

Commit afeaa36

Browse files
committed
Fix format
1 parent 34dc7de commit afeaa36

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

lldb/unittests/Symbol/SymtabTest.cpp

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -816,12 +816,15 @@ TEST_F(SymtabTest, TestSymbolTableCreatedOnDemand) {
816816
EXPECT_THAT_EXPECTED(file, llvm::Succeeded());
817817
auto module_sp = std::make_shared<Module>(file->moduleSpec());
818818

819-
SymbolFile* symbol_file = module_sp->GetSymbolFile();
820-
// At this point, the symbol table is not created. This is because the above yaml data contains the necessary sections in order for SymbolFileDWARF::CalculateAbilities() to identify all abilities,
821-
// saving the code from calling SymbolFileDWARFDebugMap::CalculateAbilities(), which eventually loads the symbol table, which we don't want.
819+
SymbolFile *symbol_file = module_sp->GetSymbolFile();
820+
// At this point, the symbol table is not created. This is because the above
821+
// yaml data contains the necessary sections in order for
822+
// SymbolFileDWARF::CalculateAbilities() to identify all abilities, saving it
823+
// from calling SymbolFileDWARFDebugMap::CalculateAbilities(), which
824+
// eventually loads the symbol table, which we don't want.
822825

823826
// The symbol table should not be created if asked not to.
824-
Symtab* symtab = symbol_file->GetSymtab(/*can_create=*/false);
827+
Symtab *symtab = symbol_file->GetSymtab(/*can_create=*/false);
825828
ASSERT_EQ(symtab, nullptr);
826829

827830
// But it should be created on demand.

0 commit comments

Comments
 (0)