|
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" |
53 | 54 | #include "clang/Basic/ExceptionSpecificationType.h" |
54 | 55 | #include "clang/Basic/IdentifierTable.h" |
55 | 56 | #include "clang/Basic/LLVM.h" |
@@ -944,7 +945,7 @@ ASTContext::ASTContext(LangOptions &LOpts, SourceManager &SM, |
944 | 945 | DependentBitIntTypes(this_()), SubstTemplateTemplateParmPacks(this_()), |
945 | 946 | DeducedTemplates(this_()), ArrayParameterTypes(this_()), |
946 | 947 | CanonTemplateTemplateParms(this_()), SourceMgr(SM), LangOpts(LOpts), |
947 | | - NoSanitizeL(new NoSanitizeList(LangOpts.NoSanitizeFiles, SM)), |
| 948 | + NoSanitizeL(new NoSanitizeList(SM)), |
948 | 949 | XRayFilter(new XRayFunctionFilter(LangOpts.XRayAlwaysInstrumentFiles, |
949 | 950 | LangOpts.XRayNeverInstrumentFiles, |
950 | 951 | LangOpts.XRayAttrListFiles, SM)), |
@@ -1697,6 +1698,15 @@ ASTContext::getRelocationInfoForCXXRecord(const CXXRecordDecl *RD) const { |
1697 | 1698 | return std::nullopt; |
1698 | 1699 | } |
1699 | 1700 |
|
| 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 | + |
1700 | 1710 | void ASTContext::setRelocationInfoForCXXRecord( |
1701 | 1711 | const CXXRecordDecl *RD, CXXRecordDeclRelocationInfo Info) { |
1702 | 1712 | assert(RD); |
|
0 commit comments