diff options
author | Ilya Biryukov <ibiryukov@google.com> | 2019-11-21 11:31:14 +0100 |
---|---|---|
committer | Ilya Biryukov <ibiryukov@google.com> | 2019-11-21 11:31:14 +0100 |
commit | 9f3fdb0d7fab73083e354768eb5808597474e1b8 (patch) | |
tree | 06d73f024ad370c2255094ff3608056ce1e93374 /llvm/lib/Support | |
parent | 2229391eb1632893571a435dd00f4ee71b5dbaf7 (diff) | |
download | bcm5719-llvm-9f3fdb0d7fab73083e354768eb5808597474e1b8.tar.gz bcm5719-llvm-9f3fdb0d7fab73083e354768eb5808597474e1b8.zip |
Revert "[Driver] Use VFS to check if sanitizer blacklists exist"
This reverts commit ba6f906854263375cff3257d22d241a8a259cf77.
Commit caused compilation errors on llvm tests. Will fix and re-land.
Diffstat (limited to 'llvm/lib/Support')
-rw-r--r-- | llvm/lib/Support/SpecialCaseList.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/llvm/lib/Support/SpecialCaseList.cpp b/llvm/lib/Support/SpecialCaseList.cpp index d1ff44cefb0..5812f075aa4 100644 --- a/llvm/lib/Support/SpecialCaseList.cpp +++ b/llvm/lib/Support/SpecialCaseList.cpp @@ -18,7 +18,6 @@ #include "llvm/ADT/StringExtras.h" #include "llvm/Support/MemoryBuffer.h" #include "llvm/Support/Regex.h" -#include "llvm/Support/VirtualFileSystem.h" #include <string> #include <system_error> #include <utility> @@ -72,9 +71,9 @@ unsigned SpecialCaseList::Matcher::match(StringRef Query) const { std::unique_ptr<SpecialCaseList> SpecialCaseList::create(const std::vector<std::string> &Paths, - llvm::vfs::FileSystem &FS, std::string &Error) { + std::string &Error) { std::unique_ptr<SpecialCaseList> SCL(new SpecialCaseList()); - if (SCL->createInternal(Paths, FS, Error)) + if (SCL->createInternal(Paths, Error)) return SCL; return nullptr; } @@ -88,16 +87,15 @@ std::unique_ptr<SpecialCaseList> SpecialCaseList::create(const MemoryBuffer *MB, } std::unique_ptr<SpecialCaseList> -SpecialCaseList::createOrDie(const std::vector<std::string> &Paths, - llvm::vfs::FileSystem &FS) { +SpecialCaseList::createOrDie(const std::vector<std::string> &Paths) { std::string Error; - if (auto SCL = create(Paths, FS, Error)) + if (auto SCL = create(Paths, Error)) return SCL; report_fatal_error(Error); } bool SpecialCaseList::createInternal(const std::vector<std::string> &Paths, - vfs::FileSystem &VFS, std::string &Error) { + std::string &Error, vfs::FileSystem &VFS) { StringMap<size_t> Sections; for (const auto &Path : Paths) { ErrorOr<std::unique_ptr<MemoryBuffer>> FileOrErr = |