LLVM 20.0.0git
Classes | Namespaces | Functions
FileCollector.cpp File Reference
#include "llvm/Support/FileCollector.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/Twine.h"
#include "llvm/Support/FileSystem.h"
#include "llvm/Support/Path.h"
#include "llvm/Support/Process.h"

Go to the source code of this file.

Classes

class  llvm::FileCollectorFileSystem
 

Namespaces

namespace  llvm
 This is an optimization pass for GlobalISel generic memory operations.
 

Functions

static bool isCaseSensitivePath (StringRef Path)
 
static void makeAbsolute (SmallVectorImpl< char > &Path)
 Make Path absolute.
 
static std::error_code copyAccessAndModificationTime (StringRef Filename, const sys::fs::file_status &Stat)
 Set the access and modification time for the given file from the given status object.
 

Function Documentation

◆ copyAccessAndModificationTime()

static std::error_code copyAccessAndModificationTime ( StringRef  Filename,
const sys::fs::file_status Stat 
)
static

Set the access and modification time for the given file from the given status object.

Definition at line 160 of file FileCollector.cpp.

References llvm::sys::fs::CD_OpenExisting, llvm::sys::fs::openFileForWrite(), llvm::sys::Process::SafelyCloseFileDescriptor(), and llvm::sys::fs::setLastAccessAndModificationTime().

Referenced by llvm::FileCollector::copyFiles().

◆ isCaseSensitivePath()

static bool isCaseSensitivePath ( StringRef  Path)
static

Definition at line 34 of file FileCollector.cpp.

References llvm::sys::fs::real_path().

Referenced by llvm::FileCollector::writeMapping().

◆ makeAbsolute()

static void makeAbsolute ( SmallVectorImpl< char > &  Path)
static