LLVM 22.0.0git
llvm::hlsl::rootsig::GenericRSMetadataError Class Reference

#include "llvm/Frontend/HLSL/RootSignatureMetadata.h"

Inheritance diagram for llvm::hlsl::rootsig::GenericRSMetadataError:
[legend]

Public Member Functions

 GenericRSMetadataError (StringRef Message, MDNode *MD)
void log (raw_ostream &OS) const override
 Print an error message to an output stream.
std::error_code convertToErrorCode () const override
 Convert this error to a std::error_code.
Public Member Functions inherited from llvm::ErrorInfo< GenericRSMetadataError >
const void * dynamicClassID () const override
bool isA (const void *const ClassID) const override
Public Member Functions inherited from llvm::ErrorInfoBase
virtual ~ErrorInfoBase ()=default
virtual std::string message () const
 Return the error message as a string.
template<typename ErrorInfoT>
bool isA () const

Public Attributes

StringRef Message
MDNodeMD

Static Public Attributes

static LLVM_ABI char ID

Additional Inherited Members

Static Public Member Functions inherited from llvm::ErrorInfo< GenericRSMetadataError >
static const void * classID ()
Static Public Member Functions inherited from llvm::ErrorInfoBase
static const void * classID ()

Detailed Description

Definition at line 51 of file RootSignatureMetadata.h.

Constructor & Destructor Documentation

◆ GenericRSMetadataError()

llvm::hlsl::rootsig::GenericRSMetadataError::GenericRSMetadataError ( StringRef Message,
MDNode * MD )
inline

Definition at line 57 of file RootSignatureMetadata.h.

References MD, and Message.

Member Function Documentation

◆ convertToErrorCode()

std::error_code llvm::hlsl::rootsig::GenericRSMetadataError::convertToErrorCode ( ) const
inlineoverridevirtual

Convert this error to a std::error_code.

This is a temporary crutch to enable interaction with code still using std::error_code. It will be removed in the future.

Implements llvm::ErrorInfoBase.

Definition at line 68 of file RootSignatureMetadata.h.

References llvm::inconvertibleErrorCode().

◆ log()

void llvm::hlsl::rootsig::GenericRSMetadataError::log ( raw_ostream & OS) const
inlineoverridevirtual

Print an error message to an output stream.

Implements llvm::ErrorInfoBase.

Definition at line 60 of file RootSignatureMetadata.h.

References MD, and Message.

Member Data Documentation

◆ ID

char llvm::hlsl::rootsig::GenericRSMetadataError::ID
static

Definition at line 53 of file RootSignatureMetadata.h.

◆ MD

MDNode* llvm::hlsl::rootsig::GenericRSMetadataError::MD

Definition at line 55 of file RootSignatureMetadata.h.

Referenced by GenericRSMetadataError(), and log().

◆ Message

StringRef llvm::hlsl::rootsig::GenericRSMetadataError::Message

Definition at line 54 of file RootSignatureMetadata.h.

Referenced by GenericRSMetadataError(), and log().


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