Lines Matching refs:AssertDI
476 #define AssertDI(C, ...) \ macro
677 AssertDI(MD && isa<DICompileUnit>(MD), "invalid compile unit", &NMD, MD); in visitNamedMDNode()
796 AssertDI(N.getRawScope() && isa<DILocalScope>(N.getRawScope()), in visitDILocation()
799 AssertDI(isa<DILocation>(IA), "inlined-at should be a location", &N, IA); in visitDILocation()
803 AssertDI(N.getTag(), "invalid tag", &N); in visitGenericDINode()
808 AssertDI(isa<DIFile>(F), "invalid file", &N, F); in visitDIScope()
812 AssertDI(N.getTag() == dwarf::DW_TAG_subrange_type, "invalid tag", &N); in visitDISubrange()
813 AssertDI(N.getCount() >= -1, "invalid subrange count", &N); in visitDISubrange()
817 AssertDI(N.getTag() == dwarf::DW_TAG_enumerator, "invalid tag", &N); in visitDIEnumerator()
821 AssertDI(N.getTag() == dwarf::DW_TAG_base_type || in visitDIBasicType()
830 AssertDI(N.getTag() == dwarf::DW_TAG_typedef || in visitDIDerivedType()
843 AssertDI(isType(N.getRawExtraData()), "invalid pointer to member type", &N, in visitDIDerivedType()
847 AssertDI(isScope(N.getRawScope()), "invalid scope", &N, N.getRawScope()); in visitDIDerivedType()
848 AssertDI(isType(N.getRawBaseType()), "invalid base type", &N, in visitDIDerivedType()
859 AssertDI(Params, "invalid template params", &N, &RawParams); in visitTemplateParams()
861 AssertDI(Op && isa<DITemplateParameter>(Op), "invalid template parameter", in visitTemplateParams()
870 AssertDI(N.getTag() == dwarf::DW_TAG_array_type || in visitDICompositeType()
877 AssertDI(isScope(N.getRawScope()), "invalid scope", &N, N.getRawScope()); in visitDICompositeType()
878 AssertDI(isType(N.getRawBaseType()), "invalid base type", &N, in visitDICompositeType()
881 AssertDI(!N.getRawElements() || isa<MDTuple>(N.getRawElements()), in visitDICompositeType()
883 AssertDI(isType(N.getRawVTableHolder()), "invalid vtable holder", &N, in visitDICompositeType()
885 AssertDI(!hasConflictingReferenceFlags(N.getFlags()), in visitDICompositeType()
892 AssertDI(N.getFile() && !N.getFile()->getFilename().empty(), in visitDICompositeType()
898 AssertDI(N.getTag() == dwarf::DW_TAG_subroutine_type, "invalid tag", &N); in visitDISubroutineType()
900 AssertDI(isa<MDTuple>(Types), "invalid composite elements", &N, Types); in visitDISubroutineType()
902 AssertDI(isType(Ty), "invalid subroutine type ref", &N, Types, Ty); in visitDISubroutineType()
905 AssertDI(!hasConflictingReferenceFlags(N.getFlags()), in visitDISubroutineType()
910 AssertDI(N.getTag() == dwarf::DW_TAG_file_type, "invalid tag", &N); in visitDIFile()
914 AssertDI(N.isDistinct(), "compile units must be distinct", &N); in visitDICompileUnit()
915 AssertDI(N.getTag() == dwarf::DW_TAG_compile_unit, "invalid tag", &N); in visitDICompileUnit()
919 AssertDI(N.getRawFile() && isa<DIFile>(N.getRawFile()), "invalid file", &N, in visitDICompileUnit()
921 AssertDI(!N.getFile()->getFilename().empty(), "invalid filename", &N, in visitDICompileUnit()
924 AssertDI((N.getEmissionKind() <= DICompileUnit::LastEmissionKind), in visitDICompileUnit()
928 AssertDI(isa<MDTuple>(Array), "invalid enum list", &N, Array); in visitDICompileUnit()
931 AssertDI(Enum && Enum->getTag() == dwarf::DW_TAG_enumeration_type, in visitDICompileUnit()
936 AssertDI(isa<MDTuple>(Array), "invalid retained type list", &N, Array); in visitDICompileUnit()
938 AssertDI(Op && (isa<DIType>(Op) || in visitDICompileUnit()
945 AssertDI(isa<MDTuple>(Array), "invalid global variable list", &N, Array); in visitDICompileUnit()
947 AssertDI(Op && isa<DIGlobalVariable>(Op), "invalid global variable ref", in visitDICompileUnit()
952 AssertDI(isa<MDTuple>(Array), "invalid imported entity list", &N, Array); in visitDICompileUnit()
954 AssertDI(Op && isa<DIImportedEntity>(Op), "invalid imported entity ref", in visitDICompileUnit()
959 AssertDI(isa<MDTuple>(Array), "invalid macro list", &N, Array); in visitDICompileUnit()
961 AssertDI(Op && isa<DIMacroNode>(Op), "invalid macro ref", &N, Op); in visitDICompileUnit()
968 AssertDI(N.getTag() == dwarf::DW_TAG_subprogram, "invalid tag", &N); in visitDISubprogram()
969 AssertDI(isScope(N.getRawScope()), "invalid scope", &N, N.getRawScope()); in visitDISubprogram()
971 AssertDI(isa<DIFile>(F), "invalid file", &N, F); in visitDISubprogram()
973 AssertDI(isa<DISubroutineType>(T), "invalid subroutine type", &N, T); in visitDISubprogram()
974 AssertDI(isType(N.getRawContainingType()), "invalid containing type", &N, in visitDISubprogram()
979 AssertDI(isa<DISubprogram>(S) && !cast<DISubprogram>(S)->isDefinition(), in visitDISubprogram()
983 AssertDI(Vars, "invalid variable list", &N, RawVars); in visitDISubprogram()
985 AssertDI(Op && isa<DILocalVariable>(Op), "invalid local variable", &N, in visitDISubprogram()
989 AssertDI(!hasConflictingReferenceFlags(N.getFlags()), in visitDISubprogram()
995 AssertDI(N.isDistinct(), "subprogram definitions must be distinct", &N); in visitDISubprogram()
996 AssertDI(Unit, "subprogram definitions must have a compile unit", &N); in visitDISubprogram()
997 AssertDI(isa<DICompileUnit>(Unit), "invalid unit type", &N, Unit); in visitDISubprogram()
1000 AssertDI(!Unit, "subprogram declarations must not have a compile unit", &N); in visitDISubprogram()
1005 AssertDI(N.getTag() == dwarf::DW_TAG_lexical_block, "invalid tag", &N); in visitDILexicalBlockBase()
1006 AssertDI(N.getRawScope() && isa<DILocalScope>(N.getRawScope()), in visitDILexicalBlockBase()
1013 AssertDI(N.getLine() || !N.getColumn(), in visitDILexicalBlock()
1022 AssertDI(N.getTag() == dwarf::DW_TAG_namespace, "invalid tag", &N); in visitDINamespace()
1024 AssertDI(isa<DIScope>(S), "invalid scope ref", &N, S); in visitDINamespace()
1028 AssertDI(N.getMacinfoType() == dwarf::DW_MACINFO_define || in visitDIMacro()
1031 AssertDI(!N.getName().empty(), "anonymous macro", &N); in visitDIMacro()
1038 AssertDI(N.getMacinfoType() == dwarf::DW_MACINFO_start_file, in visitDIMacroFile()
1041 AssertDI(isa<DIFile>(F), "invalid file", &N, F); in visitDIMacroFile()
1044 AssertDI(isa<MDTuple>(Array), "invalid macro list", &N, Array); in visitDIMacroFile()
1046 AssertDI(Op && isa<DIMacroNode>(Op), "invalid macro ref", &N, Op); in visitDIMacroFile()
1052 AssertDI(N.getTag() == dwarf::DW_TAG_module, "invalid tag", &N); in visitDIModule()
1053 AssertDI(!N.getName().empty(), "anonymous module", &N); in visitDIModule()
1057 AssertDI(isType(N.getRawType()), "invalid type ref", &N, N.getRawType()); in visitDITemplateParameter()
1063 AssertDI(N.getTag() == dwarf::DW_TAG_template_type_parameter, "invalid tag", in visitDITemplateTypeParameter()
1071 AssertDI(N.getTag() == dwarf::DW_TAG_template_value_parameter || in visitDITemplateValueParameter()
1079 AssertDI(isa<DIScope>(S), "invalid scope", &N, S); in visitDIVariable()
1080 AssertDI(isType(N.getRawType()), "invalid type ref", &N, N.getRawType()); in visitDIVariable()
1082 AssertDI(isa<DIFile>(F), "invalid file", &N, F); in visitDIVariable()
1089 AssertDI(N.getTag() == dwarf::DW_TAG_variable, "invalid tag", &N); in visitDIGlobalVariable()
1090 AssertDI(!N.getName().empty(), "missing global variable name", &N); in visitDIGlobalVariable()
1092 AssertDI(isa<ConstantAsMetadata>(V) && in visitDIGlobalVariable()
1098 AssertDI(isa<DIDerivedType>(Member), in visitDIGlobalVariable()
1107 AssertDI(N.getTag() == dwarf::DW_TAG_variable, "invalid tag", &N); in visitDILocalVariable()
1108 AssertDI(N.getRawScope() && isa<DILocalScope>(N.getRawScope()), in visitDILocalVariable()
1113 AssertDI(N.isValid(), "invalid expression", &N); in visitDIExpression()
1117 AssertDI(N.getTag() == dwarf::DW_TAG_APPLE_property, "invalid tag", &N); in visitDIObjCProperty()
1119 AssertDI(isType(T), "invalid type ref", &N, T); in visitDIObjCProperty()
1121 AssertDI(isa<DIFile>(F), "invalid file", &N, F); in visitDIObjCProperty()
1125 AssertDI(N.getTag() == dwarf::DW_TAG_imported_module || in visitDIImportedEntity()
1129 AssertDI(isa<DIScope>(S), "invalid scope for imported entity", &N, S); in visitDIImportedEntity()
1130 AssertDI(isDINode(N.getRawEntity()), "invalid imported entity", &N, in visitDIImportedEntity()
1979 AssertDI(I.first != LLVMContext::MD_dbg, in visitFunction()
2014 AssertDI(NumDebugAttachments == 1, in visitFunction()
2016 AssertDI(isa<DISubprogram>(I.second), in visitFunction()
3741 AssertDI(isa<DILocation>(N), "invalid !dbg metadata attachment", &I, N); in visitInstruction()
4155 AssertDI(isa<ValueAsMetadata>(MD) || in visitDbgIntrinsic()
4158 AssertDI(isa<DILocalVariable>(DII.getRawVariable()), in visitDbgIntrinsic()
4161 AssertDI(isa<DIExpression>(DII.getRawExpression()), in visitDbgIntrinsic()