diff options
author | Brad King <brad.king@kitware.com> | 2015-08-20 18:17:00 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-08-20 18:20:55 (GMT) |
commit | 41dc7f5fb66d3bc4b82a37d8d772a5071b317865 (patch) | |
tree | 72312cfa6804ea7109eaeaf436e18cdda9938403 | |
parent | 932af85fbb8f6f2ab65aaa518adb363f2c5e0052 (diff) | |
download | CastXML-41dc7f5fb66d3bc4b82a37d8d772a5071b317865.zip CastXML-41dc7f5fb66d3bc4b82a37d8d772a5071b317865.tar.gz CastXML-41dc7f5fb66d3bc4b82a37d8d772a5071b317865.tar.bz2 |
Detect: Avoid use of KWSys SystemTools::FileExists
Use llvm::sys::fs::exists instead.
-rw-r--r-- | src/Detect.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/Detect.cxx b/src/Detect.cxx index df53d0a..378b907 100644 --- a/src/Detect.cxx +++ b/src/Detect.cxx @@ -21,10 +21,9 @@ #include "llvm/ADT/SmallVector.h" #include "llvm/ADT/StringRef.h" #include "llvm/ADT/Triple.h" +#include "llvm/Support/FileSystem.h" #include "llvm/Support/Host.h" -#include <cxsys/SystemTools.hxx> - #include <algorithm> #include <cstdlib> #include <iostream> @@ -160,7 +159,7 @@ static bool detectCC_GNU(const char* const* argBeg, fwImplicitSuffix)); } // Replace the compiler builtin include directory with ours. - if(!fw && cxsys::SystemTools::FileExists((inc+"/emmintrin.h"))) { + if (!fw && llvm::sys::fs::exists(inc+"/emmintrin.h")) { inc = getClangBuiltinIncludeDir(); } opts.Includes.push_back(Options::Include(inc, fw)); |