This class wraps an output stream for a file.
Synopsis
Declared in <llvm/Support/Caching.h>
class CachedFileStream;
Description
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 or the commit() method.
Member Functions
Name |
Description |
|
Construct a cached file stream wrapping |
|
Destroy the stream, aborting if commit() was never called. |
|
Must be called exactly once after the writes to OS have been completed but before the CachedFileStream object is destroyed. |
Data Members
Name |
Description |
Whether commit() has already been called. |
|
Stream to write the file contents to. |
|
Path of the object file associated with this stream. |
Created with MrDocs