LLVM API Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Public Member Functions | List of all members
llvm::tool_output_file Class Reference

#include <ToolOutputFile.h>

Public Member Functions

 tool_output_file (const char *filename, std::string &ErrorInfo, sys::fs::OpenFlags Flags=sys::fs::F_None)
 
 tool_output_file (const char *Filename, int FD)
 
raw_fd_ostreamos ()
 os - Return the contained raw_fd_ostream. More...
 
void keep ()
 

Detailed Description

tool_output_file - This class contains a raw_fd_ostream and adds a few extra features commonly needed for compiler-like tool output files:

Definition at line 26 of file ToolOutputFile.h.

Constructor & Destructor Documentation

tool_output_file::tool_output_file ( const char *  filename,
std::string &  ErrorInfo,
sys::fs::OpenFlags  Flags = sys::fs::F_None 
)

tool_output_file - This constructor's arguments are passed to to raw_fd_ostream's constructor.

Definition at line 39 of file ToolOutputFile.cpp.

tool_output_file::tool_output_file ( const char *  Filename,
int  FD 
)

Definition at line 47 of file ToolOutputFile.cpp.

Member Function Documentation

void llvm::tool_output_file::keep ( )
inline

keep - Indicate that the tool's job wrt this output file has been successful and the file should not be deleted.

Definition at line 59 of file ToolOutputFile.h.

Referenced by LTOCodeGenerator::writeMergedModules().

raw_fd_ostream& llvm::tool_output_file::os ( )
inline

os - Return the contained raw_fd_ostream.

Definition at line 55 of file ToolOutputFile.h.

Referenced by LTOCodeGenerator::writeMergedModules().


The documentation for this class was generated from the following files: