LLVM 20.0.0git
|
#include "llvm/Support/CachePruning.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/Errc.h"
#include "llvm/Support/Error.h"
#include "llvm/Support/FileSystem.h"
#include "llvm/Support/Path.h"
#include "llvm/Support/WithColor.h"
#include "llvm/Support/raw_ostream.h"
#include <set>
#include <system_error>
Go to the source code of this file.
Macros | |
#define | DEBUG_TYPE "cache-pruning" |
Functions | |
static void | writeTimestampFile (StringRef TimestampFile) |
Write a new timestamp file with the given path. | |
static Expected< std::chrono::seconds > | parseDuration (StringRef Duration) |
#define DEBUG_TYPE "cache-pruning" |
Definition at line 23 of file CachePruning.cpp.
Definition at line 52 of file CachePruning.cpp.
References llvm::StringRef::getAsInteger(), and llvm::inconvertibleErrorCode().
Referenced by llvm::parseCachePruningPolicy().
|
static |
Write a new timestamp file with the given path.
This is used for the pruning interval option.
Definition at line 47 of file CachePruning.cpp.
References llvm::sys::fs::OF_None, and llvm::StringRef::str().
Referenced by llvm::pruneCache().