mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-07 12:28:24 +00:00
Verifier: Add simple checks for MDLocation
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228647 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -678,7 +678,13 @@ void Verifier::visitMetadataAsValue(const MetadataAsValue &MDV, Function *F) {
|
|||||||
visitValueAsMetadata(*V, F);
|
visitValueAsMetadata(*V, F);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Verifier::visitMDLocation(const MDLocation &) {}
|
void Verifier::visitMDLocation(const MDLocation &N) {
|
||||||
|
Assert1(N.getScope(), "location requires a valid scope", &N);
|
||||||
|
if (N.getInlinedAt())
|
||||||
|
Assert2(isa<MDLocation>(N.getInlinedAt()),
|
||||||
|
"inlined-at should be a location", &N, N.getInlinedAt());
|
||||||
|
}
|
||||||
|
|
||||||
void Verifier::visitGenericDebugNode(const GenericDebugNode &) {}
|
void Verifier::visitGenericDebugNode(const GenericDebugNode &) {}
|
||||||
void Verifier::visitMDSubrange(const MDSubrange &) {}
|
void Verifier::visitMDSubrange(const MDSubrange &) {}
|
||||||
void Verifier::visitMDEnumerator(const MDEnumerator &) {}
|
void Verifier::visitMDEnumerator(const MDEnumerator &) {}
|
||||||
|
Reference in New Issue
Block a user