mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-28 06:29:45 +00:00
Minor formatting/comment rewording/etc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192005 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9aa0a93f22
commit
c4eb353c7a
@ -966,13 +966,11 @@ static bool shouldCreateTypeUnit(DICompositeType CTy, const DwarfDebug *DD) {
|
|||||||
case dwarf::DW_TAG_enumeration_type:
|
case dwarf::DW_TAG_enumeration_type:
|
||||||
case dwarf::DW_TAG_class_type:
|
case dwarf::DW_TAG_class_type:
|
||||||
// If this is a class, structure, union, or enumeration type
|
// If this is a class, structure, union, or enumeration type
|
||||||
// that is not a declaration, is a type definition, and not scoped
|
// that is a definition (not a declaration), and not scoped
|
||||||
// inside a function then separate this out as a type unit.
|
// inside a function then separate this out as a type unit.
|
||||||
if (CTy.isForwardDecl() || !isTypeUnitScoped(CTy, DD))
|
return !CTy.isForwardDecl() && isTypeUnitScoped(CTy, DD);
|
||||||
return 0;
|
|
||||||
return 1;
|
|
||||||
default:
|
default:
|
||||||
return 0;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user