LLVM  6.0.0svn
Macros | Functions
CachePruning.cpp File Reference
#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>
Include dependency graph for CachePruning.cpp:

Go to the source code of this file.


#define DEBUG_TYPE   "cache-pruning"


static void writeTimestampFile (StringRef TimestampFile)
 Write a new timestamp file with the given path. More...
static Expected< std::chrono::seconds > parseDuration (StringRef Duration)

Macro Definition Documentation


#define DEBUG_TYPE   "cache-pruning"

Definition at line 23 of file CachePruning.cpp.

Function Documentation

◆ parseDuration()

static Expected<std::chrono::seconds> parseDuration ( StringRef  Duration)

◆ writeTimestampFile()

static void writeTimestampFile ( StringRef  TimestampFile)

Write a new timestamp file with the given path.

This is used for the pruning interval option.

Definition at line 32 of file CachePruning.cpp.

References llvm::sys::fs::F_None, and llvm::StringRef::str().

Referenced by llvm::pruneCache().