diff options
author | David Blaikie <dblaikie@gmail.com> | 2013-10-04 23:52:02 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2013-10-04 23:52:02 +0000 |
commit | 93ff1eb5fbe97ab3d80f9878375513b674b5aab9 (patch) | |
tree | 0cc8b5813fef39eb99c6a879278dc31161442e00 /llvm/lib/CodeGen | |
parent | fe3ae441796f9f859bd5d1fa1e99a569a34867ab (diff) | |
download | bcm5719-llvm-93ff1eb5fbe97ab3d80f9878375513b674b5aab9.tar.gz bcm5719-llvm-93ff1eb5fbe97ab3d80f9878375513b674b5aab9.zip |
Minor formatting/comment rewording/etc.
llvm-svn: 192005
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp index 989f9e65ffb..0668646afa3 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp @@ -966,13 +966,11 @@ static bool shouldCreateTypeUnit(DICompositeType CTy, const DwarfDebug *DD) { case dwarf::DW_TAG_enumeration_type: case dwarf::DW_TAG_class_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. - if (CTy.isForwardDecl() || !isTypeUnitScoped(CTy, DD)) - return 0; - return 1; + return !CTy.isForwardDecl() && isTypeUnitScoped(CTy, DD); default: - return 0; + return false; } } |