LLVM 20.0.0git
|
This class contains a raw_fd_ostream and adds a few extra features commonly needed for compiler-like tool output files: More...
#include "llvm/Support/ToolOutputFile.h"
Public Member Functions | |
ToolOutputFile (StringRef Filename, std::error_code &EC, sys::fs::OpenFlags Flags) | |
This constructor's arguments are passed to raw_fd_ostream's constructor. | |
ToolOutputFile (StringRef Filename, int FD) | |
raw_fd_ostream & | os () |
Return the contained raw_fd_ostream. | |
StringRef | getFilename () |
Return the filename initialized with. | |
void | keep () |
Indicate that the tool's job wrt this output file has been successful and the file should not be deleted. | |
const std::string & | outputFilename () |
This class contains a raw_fd_ostream and adds a few extra features commonly needed for compiler-like tool output files:
Definition at line 39 of file ToolOutputFile.h.
ToolOutputFile::ToolOutputFile | ( | StringRef | Filename, |
std::error_code & | EC, | ||
sys::fs::OpenFlags | Flags | ||
) |
This constructor's arguments are passed to raw_fd_ostream's constructor.
Definition at line 40 of file ToolOutputFile.cpp.
References isStdout(), llvm::CleanupInstaller::Keep, and llvm::outs().
ToolOutputFile::ToolOutputFile | ( | StringRef | Filename, |
int | FD | ||
) |
Definition at line 55 of file ToolOutputFile.cpp.
|
inline |
Return the filename initialized with.
Definition at line 65 of file ToolOutputFile.h.
References llvm::CleanupInstaller::getFilename().
|
inline |
Indicate that the tool's job wrt this output file has been successful and the file should not be deleted.
Definition at line 69 of file ToolOutputFile.h.
References llvm::CleanupInstaller::Keep.
Referenced by createDependencyFile(), llvm::TableGenMain(), and llvm::LTOCodeGenerator::writeMergedModules().
|
inline |
Return the contained raw_fd_ostream.
Definition at line 62 of file ToolOutputFile.h.
References OS.
Referenced by createDependencyFile(), llvm::TableGenMain(), and llvm::LTOCodeGenerator::writeMergedModules().
|
inline |
Definition at line 71 of file ToolOutputFile.h.
References llvm::CleanupInstaller::Filename.