summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-cfi-verify
diff options
context:
space:
mode:
authorIlya Biryukov <ibiryukov@google.com>2019-11-21 11:32:17 +0100
committerIlya Biryukov <ibiryukov@google.com>2019-11-21 11:56:09 +0100
commitaa981c1802d7353c777e399f2568e5a0e12dea21 (patch)
tree988917b64870affe5a5259fa9232419f1fac0ece /llvm/tools/llvm-cfi-verify
parentf65cfff605f2fd802fc337c6152474e3f3d22a1c (diff)
downloadbcm5719-llvm-aa981c1802d7353c777e399f2568e5a0e12dea21.tar.gz
bcm5719-llvm-aa981c1802d7353c777e399f2568e5a0e12dea21.zip
Reland 9f3fdb0d7fab: [Driver] Use VFS to check if sanitizer blacklists exist
With updates to various LLVM tools that use SpecialCastList. It was tempting to use RealFileSystem as the default, but that makes it too easy to accidentally forget passing VFS in clang code.
Diffstat (limited to 'llvm/tools/llvm-cfi-verify')
-rw-r--r--llvm/tools/llvm-cfi-verify/llvm-cfi-verify.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/tools/llvm-cfi-verify/llvm-cfi-verify.cpp b/llvm/tools/llvm-cfi-verify/llvm-cfi-verify.cpp
index c54e5383248..79bf63af5f4 100644
--- a/llvm/tools/llvm-cfi-verify/llvm-cfi-verify.cpp
+++ b/llvm/tools/llvm-cfi-verify/llvm-cfi-verify.cpp
@@ -24,6 +24,7 @@
#include "llvm/Support/Error.h"
#include "llvm/Support/FormatVariadic.h"
#include "llvm/Support/SpecialCaseList.h"
+#include "llvm/Support/VirtualFileSystem.h"
#include <cstdlib>
@@ -261,7 +262,8 @@ int main(int argc, char **argv) {
std::unique_ptr<SpecialCaseList> SpecialCaseList;
if (BlacklistFilename != "-") {
std::string Error;
- SpecialCaseList = SpecialCaseList::create({BlacklistFilename}, Error);
+ SpecialCaseList = SpecialCaseList::create({BlacklistFilename},
+ *vfs::getRealFileSystem(), Error);
if (!SpecialCaseList) {
errs() << "Failed to get blacklist: " << Error << "\n";
exit(EXIT_FAILURE);
OpenPOWER on IntegriCloud