|
@@ -72,7 +72,6 @@
|
|
#include "llvm/ADT/PointerUnion.h"
|
|
#include "llvm/ADT/PointerUnion.h"
|
|
#include "llvm/ADT/STLExtras.h"
|
|
#include "llvm/ADT/STLExtras.h"
|
|
#include "llvm/ADT/SmallPtrSet.h"
|
|
#include "llvm/ADT/SmallPtrSet.h"
|
|
-#include "llvm/ADT/SmallString.h"
|
|
|
|
#include "llvm/ADT/SmallVector.h"
|
|
#include "llvm/ADT/SmallVector.h"
|
|
#include "llvm/ADT/StringExtras.h"
|
|
#include "llvm/ADT/StringExtras.h"
|
|
#include "llvm/ADT/StringRef.h"
|
|
#include "llvm/ADT/StringRef.h"
|
|
@@ -82,7 +81,6 @@
|
|
#include "llvm/Support/Compiler.h"
|
|
#include "llvm/Support/Compiler.h"
|
|
#include "llvm/Support/ErrorHandling.h"
|
|
#include "llvm/Support/ErrorHandling.h"
|
|
#include "llvm/Support/MathExtras.h"
|
|
#include "llvm/Support/MathExtras.h"
|
|
-#include "llvm/Support/VirtualFileSystem.h"
|
|
|
|
#include "llvm/Support/raw_ostream.h"
|
|
#include "llvm/Support/raw_ostream.h"
|
|
#include <algorithm>
|
|
#include <algorithm>
|
|
#include <cassert>
|
|
#include <cassert>
|
|
@@ -828,18 +826,6 @@ static bool isAddrSpaceMapManglingEnabled(const TargetInfo &TI,
|
|
llvm_unreachable("getAddressSpaceMapMangling() doesn't cover anything.");
|
|
llvm_unreachable("getAddressSpaceMapMangling() doesn't cover anything.");
|
|
}
|
|
}
|
|
|
|
|
|
-static std::vector<std::string>
|
|
|
|
-getRealPaths(llvm::vfs::FileSystem &VFS, llvm::ArrayRef<std::string> Paths) {
|
|
|
|
- std::vector<std::string> Result;
|
|
|
|
- llvm::SmallString<128> Buffer;
|
|
|
|
- for (const auto &File : Paths) {
|
|
|
|
- if (std::error_code EC = VFS.getRealPath(File, Buffer))
|
|
|
|
- llvm::report_fatal_error("can't open file '" + File + "': " + EC.message());
|
|
|
|
- Result.push_back(Buffer.str());
|
|
|
|
- }
|
|
|
|
- return Result;
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
ASTContext::ASTContext(LangOptions &LOpts, SourceManager &SM,
|
|
ASTContext::ASTContext(LangOptions &LOpts, SourceManager &SM,
|
|
IdentifierTable &idents, SelectorTable &sels,
|
|
IdentifierTable &idents, SelectorTable &sels,
|
|
Builtin::Context &builtins)
|
|
Builtin::Context &builtins)
|
|
@@ -847,10 +833,7 @@ ASTContext::ASTContext(LangOptions &LOpts, SourceManager &SM,
|
|
TemplateSpecializationTypes(this_()),
|
|
TemplateSpecializationTypes(this_()),
|
|
DependentTemplateSpecializationTypes(this_()),
|
|
DependentTemplateSpecializationTypes(this_()),
|
|
SubstTemplateTemplateParmPacks(this_()), SourceMgr(SM), LangOpts(LOpts),
|
|
SubstTemplateTemplateParmPacks(this_()), SourceMgr(SM), LangOpts(LOpts),
|
|
- SanitizerBL(new SanitizerBlacklist(
|
|
|
|
- getRealPaths(SM.getFileManager().getVirtualFileSystem(),
|
|
|
|
- LangOpts.SanitizerBlacklistFiles),
|
|
|
|
- SM)),
|
|
|
|
|
|
+ SanitizerBL(new SanitizerBlacklist(LangOpts.SanitizerBlacklistFiles, SM)),
|
|
XRayFilter(new XRayFunctionFilter(LangOpts.XRayAlwaysInstrumentFiles,
|
|
XRayFilter(new XRayFunctionFilter(LangOpts.XRayAlwaysInstrumentFiles,
|
|
LangOpts.XRayNeverInstrumentFiles,
|
|
LangOpts.XRayNeverInstrumentFiles,
|
|
LangOpts.XRayAttrListFiles, SM)),
|
|
LangOpts.XRayAttrListFiles, SM)),
|