LLVM  4.0.0
Public Member Functions | Static Public Member Functions | List of all members
llvm::DiagnosticInfoUnsupported Class Reference

Diagnostic information for unsupported feature in backend. More...

#include <DiagnosticInfo.h>

Inheritance diagram for llvm::DiagnosticInfoUnsupported:
[legend]
Collaboration diagram for llvm::DiagnosticInfoUnsupported:
[legend]

Public Member Functions

 DiagnosticInfoUnsupported (const Function &Fn, const Twine &Msg, DebugLoc DLoc=DebugLoc(), DiagnosticSeverity Severity=DS_Error)
 Fn is the function where the diagnostic is being emitted. More...
 
const TwinegetMessage () const
 
void print (DiagnosticPrinter &DP) const override
 Print using the given DP a user-friendly message. More...
 
- Public Member Functions inherited from llvm::DiagnosticInfoWithDebugLocBase
 DiagnosticInfoWithDebugLocBase (enum DiagnosticKind Kind, enum DiagnosticSeverity Severity, const Function &Fn, const DebugLoc &DLoc)
 Fn is the function where the diagnostic is being emitted. More...
 
bool isLocationAvailable () const
 Return true if location information is available for this diagnostic. More...
 
const std::string getLocationStr () const
 Return a string with the location information for this diagnostic in the format "file:line:col". More...
 
void getLocation (StringRef *Filename, unsigned *Line, unsigned *Column) const
 Return location information for this diagnostic in three parts: the source file name, line number and column. More...
 
const FunctiongetFunction () const
 
const DebugLocgetDebugLoc () const
 
- Public Member Functions inherited from llvm::DiagnosticInfo
 DiagnosticInfo (int Kind, DiagnosticSeverity Severity)
 
virtual ~DiagnosticInfo ()=default
 
int getKind () const
 
DiagnosticSeverity getSeverity () const
 

Static Public Member Functions

static bool classof (const DiagnosticInfo *DI)
 

Detailed Description

Diagnostic information for unsupported feature in backend.

Definition at line 851 of file DiagnosticInfo.h.

Constructor & Destructor Documentation

llvm::DiagnosticInfoUnsupported::DiagnosticInfoUnsupported ( const Function Fn,
const Twine Msg,
DebugLoc  DLoc = DebugLoc(),
DiagnosticSeverity  Severity = DS_Error 
)
inline

Fn is the function where the diagnostic is being emitted.

DLoc is the location information to use in the diagnostic. If line table information is available, the diagnostic will include the source code location. Msg is the message to show. Note that this class does not copy this message, so this reference must be valid for the whole life time of the diagnostic.

Definition at line 863 of file DiagnosticInfo.h.

Member Function Documentation

static bool llvm::DiagnosticInfoUnsupported::classof ( const DiagnosticInfo DI)
inlinestatic

Definition at line 869 of file DiagnosticInfo.h.

References llvm::DK_Unsupported, and llvm::DiagnosticInfo::getKind().

const Twine& llvm::DiagnosticInfoUnsupported::getMessage ( ) const
inline

Definition at line 873 of file DiagnosticInfo.h.

void DiagnosticInfoUnsupported::print ( DiagnosticPrinter DP) const
overridevirtual

Print using the given DP a user-friendly message.

This is the default message that will be printed to the user. It is used when the frontend does not directly take advantage of the information contained in fields of the subclasses. The printed message must not end with '.' nor start with a severity keyword.

Implements llvm::DiagnosticInfo.

Definition at line 329 of file DiagnosticInfo.cpp.

References llvm::raw_ostream::flush(), llvm::DiagnosticInfoWithDebugLocBase::getFunction(), llvm::Function::getFunctionType(), llvm::DiagnosticInfoWithDebugLocBase::getLocationStr(), and llvm::Value::getName().


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