struct CacheStream

Declaration

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

Description

This class wraps an output stream for a native object. 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/LTO/Caching.cpp:72

Inherits from: NativeObjectStream

Member Variables

public llvm::lto::AddBufferFn AddBuffer
public sys::fs::TempFile TempFile
public std::string EntryPath
public unsigned int Task

Inherited from NativeObjectStream:

public OS

Method Overview

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

Inherited from NativeObjectStream:

    Methods

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

    Declared at: llvm/lib/LTO/Caching.cpp:78

    Parameters

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

    ~CacheStream()

    Declared at: llvm/lib/LTO/Caching.cpp:85