Use forward declarations more of the time to save on things that we need to

parse.

llvm-svn: 146473
This commit is contained in:
Greg Clayton 2011-12-13 04:34:06 +00:00
parent 7200123fa3
commit 8eb732e9e5
1 changed files with 2 additions and 2 deletions

View File

@ -4902,7 +4902,7 @@ SymbolFileDWARF::ParseType (const SymbolContext& sc, DWARFCompileUnit* dwarf_cu,
// prototype off of, so we need this type to be completed so that the
// m_die_to_decl_ctx for the method in the specification has a valid
// clang decl context.
class_type->GetClangFullType();
class_type->GetClangForwardType();
// If we have a specification, then the function type should have been
// made with the specification and not with this die.
DWARFCompileUnitSP spec_cu_sp;
@ -4926,7 +4926,7 @@ SymbolFileDWARF::ParseType (const SymbolContext& sc, DWARFCompileUnit* dwarf_cu,
// prototype off of, so we need this type to be completed so that the
// m_die_to_decl_ctx for the method in the abstract origin has a valid
// clang decl context.
class_type->GetClangFullType();
class_type->GetClangForwardType();
DWARFCompileUnitSP abs_cu_sp;
const DWARFDebugInfoEntry* abs_die = DebugInfo()->GetDIEPtr(abstract_origin_die_offset, &abs_cu_sp);