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