|
50 | 50 | #include "clang/Basic/AddressSpaces.h" |
51 | 51 | #include "clang/Basic/Builtins.h" |
52 | 52 | #include "clang/Basic/CommentOptions.h" |
53 | | -#include "clang/Basic/DiagnosticFrontend.h" |
54 | 53 | #include "clang/Basic/ExceptionSpecificationType.h" |
55 | 54 | #include "clang/Basic/IdentifierTable.h" |
56 | 55 | #include "clang/Basic/LLVM.h" |
@@ -945,7 +944,7 @@ ASTContext::ASTContext(LangOptions &LOpts, SourceManager &SM, |
945 | 944 | DependentBitIntTypes(this_()), SubstTemplateTemplateParmPacks(this_()), |
946 | 945 | DeducedTemplates(this_()), ArrayParameterTypes(this_()), |
947 | 946 | CanonTemplateTemplateParms(this_()), SourceMgr(SM), LangOpts(LOpts), |
948 | | - NoSanitizeL(new NoSanitizeList(SM)), |
| 947 | + NoSanitizeL(new NoSanitizeList(LangOpts.NoSanitizeFiles, SM)), |
949 | 948 | XRayFilter(new XRayFunctionFilter(LangOpts.XRayAlwaysInstrumentFiles, |
950 | 949 | LangOpts.XRayNeverInstrumentFiles, |
951 | 950 | LangOpts.XRayAttrListFiles, SM)), |
@@ -1698,15 +1697,6 @@ ASTContext::getRelocationInfoForCXXRecord(const CXXRecordDecl *RD) const { |
1698 | 1697 | return std::nullopt; |
1699 | 1698 | } |
1700 | 1699 |
|
1701 | | -void ASTContext::initSanitizers(const LangOptions &LangOpts, |
1702 | | - SourceManager &SM) { |
1703 | | - std::pair<unsigned, std::string> Error; |
1704 | | - if (!NoSanitizeL->init(LangOpts.NoSanitizeFiles, Error)) { |
1705 | | - SM.getDiagnostics().Report(diag::err_sanitize_ignorelist_failure) |
1706 | | - << Error.first << Error.second; |
1707 | | - } |
1708 | | -} |
1709 | | - |
1710 | 1700 | void ASTContext::setRelocationInfoForCXXRecord( |
1711 | 1701 | const CXXRecordDecl *RD, CXXRecordDeclRelocationInfo Info) { |
1712 | 1702 | assert(RD); |
|
0 commit comments