LLVM
8.0.1
|
#include "llvm/Support/CachePruning.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/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. More... | |
static Expected< std::chrono::seconds > | parseDuration (StringRef Duration) |
#define DEBUG_TYPE "cache-pruning" |
Definition at line 23 of file CachePruning.cpp.
Definition at line 59 of file CachePruning.cpp.
References llvm::StringRef::back(), llvm::StringRef::empty(), llvm::StringRef::getAsInteger(), llvm::inconvertibleErrorCode(), llvm::StringRef::size(), and llvm::StringRef::slice().
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 54 of file CachePruning.cpp.
References llvm::sys::fs::F_None, and llvm::StringRef::str().
Referenced by llvm::pruneCache().