mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-25 00:24:26 +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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147863 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -76,11 +76,11 @@ void DIBuilder::createCompileUnit(unsigned Lang, StringRef Filename,
|
|||||||
StringRef Directory, StringRef Producer,
|
StringRef Directory, StringRef Producer,
|
||||||
bool isOptimized, StringRef Flags,
|
bool isOptimized, StringRef Flags,
|
||||||
unsigned RunTimeVer) {
|
unsigned RunTimeVer) {
|
||||||
assert ((Lang <= dwarf::DW_LANG_Python && Lang >= dwarf::DW_LANG_C89
|
assert(((Lang <= dwarf::DW_LANG_Python && Lang >= dwarf::DW_LANG_C89) ||
|
||||||
|| Lang <= dwarf::DW_LANG_hi_user && Lang >= dwarf::DW_LANG_lo_user)
|
(Lang <= dwarf::DW_LANG_hi_user && Lang >= dwarf::DW_LANG_lo_user)) &&
|
||||||
&& "Invalid Language tag");
|
"Invalid Language tag");
|
||||||
assert (!Filename.empty()
|
assert(!Filename.empty() &&
|
||||||
&& "Unable to create compile unit without filename");
|
"Unable to create compile unit without filename");
|
||||||
Value *TElts[] = { GetTagConstant(VMContext, DW_TAG_base_type) };
|
Value *TElts[] = { GetTagConstant(VMContext, DW_TAG_base_type) };
|
||||||
TempEnumTypes = MDNode::getTemporary(VMContext, TElts);
|
TempEnumTypes = MDNode::getTemporary(VMContext, TElts);
|
||||||
Value *THElts[] = { TempEnumTypes };
|
Value *THElts[] = { TempEnumTypes };
|
||||||
|
Reference in New Issue
Block a user