LLVM  4.0.0
Public Member Functions | Public Attributes | List of all members
llvm::ExitOnError Class Reference

Helper for check-and-exit error handling. More...

#include <Error.h>

Collaboration diagram for llvm::ExitOnError:
[legend]

Public Member Functions

 ExitOnError (std::string Banner="", int DefaultErrorExitCode=1)
 Create an error on exit helper. More...
 

Public Attributes

std::function< int(const Error &)> GetExitCode
 

Detailed Description

Helper for check-and-exit error handling.

For tool use only. NOT FOR USE IN LIBRARY CODE.

Definition at line 938 of file Support/Error.h.

Constructor & Destructor Documentation

llvm::ExitOnError::ExitOnError ( std::string  Banner = "",
int  DefaultErrorExitCode = 1 
)
inline

Create an error on exit helper.

Definition at line 941 of file Support/Error.h.

Member Data Documentation

std::function<int(const Error &)> llvm::ExitOnError::GetExitCode

Definition at line 943 of file Support/Error.h.


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