@@ -329,9 +329,6 @@ class Verifier : public InstVisitor<Verifier>, VerifierSupport {
329
329
// / The current source language.
330
330
dwarf::SourceLanguage CurrentSourceLang = dwarf::DW_LANG_lo_user;
331
331
332
- // / Whether source was present on the first DIFile encountered in each CU.
333
- DenseMap<const DICompileUnit *, bool > HasSourceDebugInfo;
334
-
335
332
// / Stores the count of how many objects were passed to llvm.localescape for a
336
333
// / given function and the largest index passed to llvm.localrecover.
337
334
DenseMap<Function *, std::pair<unsigned , unsigned >> FrameEscapeInfo;
@@ -620,9 +617,6 @@ class Verifier : public InstVisitor<Verifier>, VerifierSupport {
620
617
void verifyAttachedCallBundle (const CallBase &Call,
621
618
const OperandBundleUse &BU);
622
619
623
- // / Verify all-or-nothing property of DIFile source attribute within a CU.
624
- void verifySourceDebugInfo (const DICompileUnit &U, const DIFile &F);
625
-
626
620
// / Verify the llvm.experimental.noalias.scope.decl declarations
627
621
void verifyNoAliasScopeDecl ();
628
622
};
@@ -1352,8 +1346,6 @@ void Verifier::visitDICompileUnit(const DICompileUnit &N) {
1352
1346
1353
1347
CurrentSourceLang = (dwarf::SourceLanguage)N.getSourceLanguage ();
1354
1348
1355
- verifySourceDebugInfo (N, *N.getFile ());
1356
-
1357
1349
CheckDI ((N.getEmissionKind () <= DICompileUnit::LastEmissionKind),
1358
1350
" invalid emission kind" , &N);
1359
1351
@@ -1442,8 +1434,6 @@ void Verifier::visitDISubprogram(const DISubprogram &N) {
1442
1434
" definition subprograms cannot be nested within DICompositeType "
1443
1435
" when enabling ODR" ,
1444
1436
&N);
1445
- if (N.getFile ())
1446
- verifySourceDebugInfo (*N.getUnit (), *N.getFile ());
1447
1437
} else {
1448
1438
// Subprogram declarations (part of the type hierarchy).
1449
1439
CheckDI (!Unit, " subprogram declarations must not have a compile unit" , &N);
@@ -6590,14 +6580,6 @@ void Verifier::verifyAttachedCallBundle(const CallBase &Call,
6590
6580
}
6591
6581
}
6592
6582
6593
- void Verifier::verifySourceDebugInfo (const DICompileUnit &U, const DIFile &F) {
6594
- bool HasSource = F.getSource ().has_value ();
6595
- if (!HasSourceDebugInfo.count (&U))
6596
- HasSourceDebugInfo[&U] = HasSource;
6597
- CheckDI (HasSource == HasSourceDebugInfo[&U],
6598
- " inconsistent use of embedded source" );
6599
- }
6600
-
6601
6583
void Verifier::verifyNoAliasScopeDecl () {
6602
6584
if (NoAliasScopeDecls.empty ())
6603
6585
return ;
0 commit comments