struct CacheStream

Declaration

struct CacheStream : public CachedFileStream { /* full declaration omitted */ };

Description

This class wraps an output stream for a file. Most clients should just be able to return an instance of this base class from the stream callback, but if a client needs to perform some action after the stream is written to, that can be done by deriving from this class and overriding the destructor.

Declared at: llvm/lib/Support/Caching.cpp:77

Inherits from: CachedFileStream

Member Variables

public llvm::AddBufferFn AddBuffer
public sys::fs::TempFile TempFile
public unsigned int Task

Inherited from CachedFileStream:

public OS
public ObjectPathName

Method Overview

  • public CacheStream(std::unique_ptr<raw_pwrite_stream> OS, llvm::AddBufferFn AddBuffer, sys::fs::TempFile TempFile, std::string EntryPath, unsigned int Task)
  • public ~CacheStream()

Inherited from CachedFileStream:

    Methods

    CacheStream(std::unique_ptr<raw_pwrite_stream> OS,
                llvm::AddBufferFn AddBuffer,
                sys::fs::TempFile TempFile,
                std::string EntryPath,
                unsigned int Task)

    Declared at: llvm/lib/Support/Caching.cpp:82

    Parameters

    std::unique_ptr<raw_pwrite_stream> OS
    llvm::AddBufferFn AddBuffer
    sys::fs::TempFile TempFile
    std::string EntryPath
    unsigned int Task

    ~CacheStream()

    Declared at: llvm/lib/Support/Caching.cpp:89