[llvm] r192005 - Minor formatting/comment rewording/etc.
David Blaikie
dblaikie at gmail.com
Fri Oct 4 16:52:02 PDT 2013
Author: dblaikie
Date: Fri Oct 4 18:52:02 2013
New Revision: 192005
URL: http://llvm.org/viewvc/llvm-project?rev=192005&view=rev
Log:
Minor formatting/comment rewording/etc.
Modified:
llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp?rev=192005&r1=192004&r2=192005&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp Fri Oct 4 18:52:02 2013
@@ -966,13 +966,11 @@ static bool shouldCreateTypeUnit(DICompo
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;
}
}
More information about the llvm-commits
mailing list