LLVM 22.0.0git
|
RAII handle that manages the lifetime of the ToolOutputFile used to output remarks. More...
#include "llvm/IR/LLVMRemarkStreamer.h"
Public Member Functions | |
LLVMRemarkFileHandle () | |
LLVMRemarkFileHandle (std::unique_ptr< ToolOutputFile > OutputFile, LLVMContext &Ctx) | |
ToolOutputFile * | get () |
operator bool () | |
std::unique_ptr< ToolOutputFile > | releaseFile () |
Finalize remark emission and release the underlying ToolOutputFile. | |
void | finalize () |
ToolOutputFile & | operator* () |
ToolOutputFile * | operator-> () |
RAII handle that manages the lifetime of the ToolOutputFile used to output remarks.
On destruction (or when calling releaseFile()), this handle ensures that the optimization remarks are finalized and the RemarkStreamer is correctly deregistered from the LLVMContext.
Definition at line 90 of file LLVMRemarkStreamer.h.
|
inline |
Definition at line 117 of file LLVMRemarkStreamer.h.
|
inline |
Definition at line 119 of file LLVMRemarkStreamer.h.
References llvm::move().
|
inline |
Definition at line 132 of file LLVMRemarkStreamer.h.
Referenced by llvm::lto::finalizeOptimizationRemarks(), and releaseFile().
|
inline |
Definition at line 123 of file LLVMRemarkStreamer.h.
|
inlineexplicit |
Definition at line 124 of file LLVMRemarkStreamer.h.
|
inline |
Definition at line 134 of file LLVMRemarkStreamer.h.
|
inline |
Definition at line 135 of file LLVMRemarkStreamer.h.
|
inline |
Finalize remark emission and release the underlying ToolOutputFile.
Definition at line 127 of file LLVMRemarkStreamer.h.
References finalize().