LLVM: llvm::ToolOutputFile Class Reference (original) (raw)
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](ToolOutputFile%5F8h%5Fsource.html)"
| Public Member Functions | |
|---|---|
| LLVM_ABI | ToolOutputFile (StringRef Filename, std::error_code &EC, sys::fs::OpenFlags Flags) |
| This constructor's arguments are passed to raw_fd_ostream's constructor. | |
| LLVM_ABI | 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:
- The file is automatically deleted if the process is killed.
- The file is automatically deleted when the ToolOutputFile object is destroyed unless the client calls keep().
Definition at line 40 of file ToolOutputFile.h.
◆ ToolOutputFile() [2/2]
| ToolOutputFile::ToolOutputFile | ( | StringRef | Filename, |
|---|---|---|---|
| int | FD ) |
◆ getFilename()
| StringRef llvm::ToolOutputFile::getFilename ( ) | inline |
|---|
◆ keep()
| void llvm::ToolOutputFile::keep ( ) | inline |
|---|
◆ os()
◆ outputFilename()
| const std::string & llvm::ToolOutputFile::outputFilename ( ) | inline |
|---|
The documentation for this class was generated from the following files:
- include/llvm/Support/ToolOutputFile.h
- lib/Support/ToolOutputFile.cpp