reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

lib/IR/Verifier.cpp
 1102   AssertDI(N.getTag() == dwarf::DW_TAG_subprogram, "invalid tag", &N);
 1102   AssertDI(N.getTag() == dwarf::DW_TAG_subprogram, "invalid tag", &N);
 1103   AssertDI(isScope(N.getRawScope()), "invalid scope", &N, N.getRawScope());
 1103   AssertDI(isScope(N.getRawScope()), "invalid scope", &N, N.getRawScope());
 1103   AssertDI(isScope(N.getRawScope()), "invalid scope", &N, N.getRawScope());
 1104   if (auto *F = N.getRawFile())
 1105     AssertDI(isa<DIFile>(F), "invalid file", &N, F);
 1107     AssertDI(N.getLine() == 0, "line specified with no file", &N, N.getLine());
 1107     AssertDI(N.getLine() == 0, "line specified with no file", &N, N.getLine());
 1107     AssertDI(N.getLine() == 0, "line specified with no file", &N, N.getLine());
 1108   if (auto *T = N.getRawType())
 1109     AssertDI(isa<DISubroutineType>(T), "invalid subroutine type", &N, T);
 1110   AssertDI(isType(N.getRawContainingType()), "invalid containing type", &N,
 1110   AssertDI(isType(N.getRawContainingType()), "invalid containing type", &N,
 1111            N.getRawContainingType());
 1112   if (auto *Params = N.getRawTemplateParams())
 1113     visitTemplateParams(N, *Params);
 1114   if (auto *S = N.getRawDeclaration())
 1116              "invalid subprogram declaration", &N, S);
 1117   if (auto *RawNode = N.getRawRetainedNodes()) {
 1119     AssertDI(Node, "invalid retained nodes list", &N, RawNode);
 1123                &N, Node, Op);
 1126   AssertDI(!hasConflictingReferenceFlags(N.getFlags()),
 1127            "invalid reference flags", &N);
 1129   auto *Unit = N.getRawUnit();
 1130   if (N.isDefinition()) {
 1132     AssertDI(N.isDistinct(), "subprogram definitions must be distinct", &N);
 1132     AssertDI(N.isDistinct(), "subprogram definitions must be distinct", &N);
 1133     AssertDI(Unit, "subprogram definitions must have a compile unit", &N);
 1134     AssertDI(isa<DICompileUnit>(Unit), "invalid unit type", &N, Unit);
 1135     if (N.getFile())
 1136       verifySourceDebugInfo(*N.getUnit(), *N.getFile());
 1136       verifySourceDebugInfo(*N.getUnit(), *N.getFile());
 1139     AssertDI(!Unit, "subprogram declarations must not have a compile unit", &N);
 1142   if (auto *RawThrownTypes = N.getRawThrownTypes()) {
 1144     AssertDI(ThrownTypes, "invalid thrown types list", &N, RawThrownTypes);
 1146       AssertDI(Op && isa<DIType>(Op), "invalid thrown type", &N, ThrownTypes,
 1150   if (N.areAllCallsDescribed())
 1151     AssertDI(N.isDefinition(),