mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +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/ADT/OwningPtr.h"
|
||||
#include "llvm/Bitcode/ReaderWriter.h"
|
||||
#include "llvm/Support/FileSystem.h"
|
||||
#include "llvm/Support/MemoryBuffer.h"
|
||||
#include "llvm/Support/Process.h"
|
||||
#include "llvm/Support/Signals.h"
|
||||
@@ -156,7 +157,8 @@ Archive::fillHeader(const ArchiveMember &mbr, ArchiveMemberHeader& hdr,
|
||||
bool
|
||||
Archive::addFileBefore(const sys::Path& filePath, iterator where,
|
||||
std::string* ErrMsg) {
|
||||
if (!filePath.exists()) {
|
||||
bool Exists;
|
||||
if (sys::fs::exists(filePath.str(), Exists) || !Exists) {
|
||||
if (ErrMsg)
|
||||
*ErrMsg = "Can not add a non-existent file to archive";
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user