Skip to content

Commit

Permalink
Fix a fission expression evaluation issue
Browse files Browse the repository at this point in the history
This fix should eliminate the duplicate definition errors when debug
info is available in multiple dwo symbol file for the same type.

llvm-svn: 251282
  • Loading branch information
Tamas Berghammer committed Oct 26, 2015
1 parent b892e35 commit 29932b0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.h
Expand Up @@ -457,7 +457,7 @@ class SymbolFileDWARF : public lldb_private::SymbolFile, public lldb_private::Us
DWARFDIE
FindBlockContainingSpecification (const DWARFDIE &die, dw_offset_t spec_block_die_offset);

UniqueDWARFASTTypeMap &
virtual UniqueDWARFASTTypeMap &
GetUniqueDWARFASTTypeMap ();

bool
Expand Down
6 changes: 6 additions & 0 deletions lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDwo.cpp
Expand Up @@ -100,6 +100,12 @@ SymbolFileDWARFDwo::GetForwardDeclClangTypeToDie()
return GetBaseSymbolFile()->GetForwardDeclClangTypeToDie();
}

UniqueDWARFASTTypeMap&
SymbolFileDWARFDwo::GetUniqueDWARFASTTypeMap()
{
return GetBaseSymbolFile()->GetUniqueDWARFASTTypeMap();
}

lldb::TypeSP
SymbolFileDWARFDwo::FindDefinitionTypeForDWARFDeclContext (const DWARFDeclContext &die_decl_ctx)
{
Expand Down
3 changes: 3 additions & 0 deletions lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDwo.h
Expand Up @@ -54,6 +54,9 @@ class SymbolFileDWARFDwo : public SymbolFileDWARF
ClangTypeToDIE&
GetForwardDeclClangTypeToDie() override;

UniqueDWARFASTTypeMap&
GetUniqueDWARFASTTypeMap() override;

lldb::TypeSP
FindDefinitionTypeForDWARFDeclContext (const DWARFDeclContext &die_decl_ctx) override;

Expand Down

0 comments on commit 29932b0

Please sign in to comment.