LLVM  8.0.1
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.

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)
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "cache-pruning"

Definition at line 23 of file CachePruning.cpp.

Function Documentation

◆ parseDuration()

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

◆ writeTimestampFile()

static void writeTimestampFile ( StringRef  TimestampFile)
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().