Make a backend where OutputBackend::createFile() forwards to UnderlyingBackend when Filter is true, and otherwise returns a NullOutput.
Synopsis
Declared in <llvm/Support/VirtualOutputBackends.h>
IntrusiveRefCntPtr<OutputBackend>
makeFilteringOutputBackend(
IntrusiveRefCntPtr<OutputBackend> UnderlyingBackend,
std::function<bool(StringRef, std::optional<OutputConfig>)> Filter);
Return Value
A smart pointer to a reference‐counted object that inherits from RefCountedBase or ThreadSafeRefCountedBase.
Parameters
Name |
Description |
UnderlyingBackend |
A smart pointer to a reference‐counted object that inherits from RefCountedBase or ThreadSafeRefCountedBase. |
Created with MrDocs