mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-25 05:22:04 +00:00
Support/Path: Deprecate PathV1::exists and replace all uses with PathV2::fs::exists.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123151 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
#include "llvm/Module.h"
|
||||
#include "llvm/Bitcode/Archive.h"
|
||||
#include "llvm/Support/CommandLine.h"
|
||||
#include "llvm/Support/FileSystem.h"
|
||||
#include "llvm/Support/ManagedStatic.h"
|
||||
#include "llvm/Support/PrettyStackTrace.h"
|
||||
#include "llvm/Support/Format.h"
|
||||
@@ -69,7 +70,8 @@ int main(int argc, char **argv) {
|
||||
throw std::string("Archive name invalid: ") + ArchiveName;
|
||||
|
||||
// Make sure it exists, we don't create empty archives
|
||||
if (!ArchivePath.exists())
|
||||
bool Exists;
|
||||
if (llvm::sys::fs::exists(ArchivePath.str(), Exists) || !Exists)
|
||||
throw std::string("Archive file does not exist");
|
||||
|
||||
std::string err_msg;
|
||||
|
||||
Reference in New Issue
Block a user