LLVM  8.0.1
Public Member Functions | Public Attributes | List of all members
llvm::lto::LTOLLVMDiagnosticHandler Struct Reference

#include "llvm/LTO/Config.h"

Inheritance diagram for llvm::lto::LTOLLVMDiagnosticHandler:
Inheritance graph
[legend]
Collaboration diagram for llvm::lto::LTOLLVMDiagnosticHandler:
Collaboration graph
[legend]

Public Member Functions

 LTOLLVMDiagnosticHandler (DiagnosticHandlerFunction *DiagHandlerFn)
 
bool handleDiagnostics (const DiagnosticInfo &DI) override
 Override handleDiagnostics to provide custom implementation. More...
 
- Public Member Functions inherited from llvm::DiagnosticHandler
 DiagnosticHandler (void *DiagContext=nullptr)
 
virtual ~DiagnosticHandler ()=default
 
virtual bool isAnalysisRemarkEnabled (StringRef PassName) const
 Return true if analysis remarks are enabled, override to provide different implementation. More...
 
virtual bool isMissedOptRemarkEnabled (StringRef PassName) const
 Return true if missed optimization remarks are enabled, override to provide different implementation. More...
 
virtual bool isPassedOptRemarkEnabled (StringRef PassName) const
 Return true if passed optimization remarks are enabled, override to provide different implementation. More...
 
bool isAnyRemarkEnabled (StringRef PassName) const
 Return true if any type of remarks are enabled for this pass. More...
 
virtual bool isAnyRemarkEnabled () const
 Return true if any type of remarks are enabled for any pass. More...
 

Public Attributes

DiagnosticHandlerFunctionFn
 
- Public Attributes inherited from llvm::DiagnosticHandler
void * DiagnosticContext = nullptr
 
DiagnosticHandlerTy DiagHandlerCallback = nullptr
 DiagHandlerCallback is settable from the C API and base implementation of DiagnosticHandler will call it from handleDiagnostics(). More...
 

Additional Inherited Members

- Public Types inherited from llvm::DiagnosticHandler
using DiagnosticHandlerTy = void(*)(const DiagnosticInfo &DI, void *Context)
 

Detailed Description

Definition at line 192 of file Config.h.

Constructor & Destructor Documentation

◆ LTOLLVMDiagnosticHandler()

llvm::lto::LTOLLVMDiagnosticHandler::LTOLLVMDiagnosticHandler ( DiagnosticHandlerFunction DiagHandlerFn)
inline

Definition at line 194 of file Config.h.

Member Function Documentation

◆ handleDiagnostics()

bool llvm::lto::LTOLLVMDiagnosticHandler::handleDiagnostics ( const DiagnosticInfo DI)
inlineoverridevirtual

Override handleDiagnostics to provide custom implementation.

Return true if it handles diagnostics reporting properly otherwise return false to make LLVMContext::diagnose() to print the message with a prefix based on the severity.

Reimplemented from llvm::DiagnosticHandler.

Definition at line 196 of file Config.h.

Member Data Documentation

◆ Fn

DiagnosticHandlerFunction* llvm::lto::LTOLLVMDiagnosticHandler::Fn

Definition at line 193 of file Config.h.


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