mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-16 08:08:01 +00:00
Cleanup these asserts to follow common LLVM style and coding
conventions. Also, clarify the grouping of one of the asserts to silence -Wparentheses. llvm-svn: 147863
This commit is contained in:
parent
2a6b59a693
commit
844b5fc832
@ -76,11 +76,11 @@ void DIBuilder::createCompileUnit(unsigned Lang, StringRef Filename,
|
||||
StringRef Directory, StringRef Producer,
|
||||
bool isOptimized, StringRef Flags,
|
||||
unsigned RunTimeVer) {
|
||||
assert ((Lang <= dwarf::DW_LANG_Python && Lang >= dwarf::DW_LANG_C89
|
||||
|| Lang <= dwarf::DW_LANG_hi_user && Lang >= dwarf::DW_LANG_lo_user)
|
||||
&& "Invalid Language tag");
|
||||
assert (!Filename.empty()
|
||||
&& "Unable to create compile unit without filename");
|
||||
assert(((Lang <= dwarf::DW_LANG_Python && Lang >= dwarf::DW_LANG_C89) ||
|
||||
(Lang <= dwarf::DW_LANG_hi_user && Lang >= dwarf::DW_LANG_lo_user)) &&
|
||||
"Invalid Language tag");
|
||||
assert(!Filename.empty() &&
|
||||
"Unable to create compile unit without filename");
|
||||
Value *TElts[] = { GetTagConstant(VMContext, DW_TAG_base_type) };
|
||||
TempEnumTypes = MDNode::getTemporary(VMContext, TElts);
|
||||
Value *THElts[] = { TempEnumTypes };
|
||||
|
Loading…
Reference in New Issue
Block a user