LLVM  5.0.0
Public Member Functions | Public Attributes | List of all members
llvm::DiagnosticInfoOptimizationBase::Argument Struct Reference

Used in the streaming interface as the general argument type. More...

#include "llvm/IR/DiagnosticInfo.h"

Inheritance diagram for llvm::DiagnosticInfoOptimizationBase::Argument:
[legend]
Collaboration diagram for llvm::DiagnosticInfoOptimizationBase::Argument:
[legend]

Public Member Functions

 Argument (StringRef Str="")
 
 Argument (StringRef Key, const Value *V)
 
 Argument (StringRef Key, const Type *T)
 
 Argument (StringRef Key, int N)
 
 Argument (StringRef Key, unsigned N)
 
 Argument (StringRef Key, bool B)
 

Public Attributes

StringRef Key
 
std::string Val
 
DiagnosticLocation Loc
 

Detailed Description

Used in the streaming interface as the general argument type.

It internally converts everything into a key-value pair.

Definition at line 413 of file DiagnosticInfo.h.

Constructor & Destructor Documentation

llvm::DiagnosticInfoOptimizationBase::Argument::Argument ( StringRef  Str = "")
inlineexplicit

Definition at line 419 of file DiagnosticInfo.h.

DiagnosticInfoOptimizationBase::Argument::Argument ( StringRef  Key,
const Value *  V 
)
DiagnosticInfoOptimizationBase::Argument::Argument ( StringRef  Key,
const Type *  T 
)

Definition at line 215 of file DiagnosticInfo.cpp.

References T.

DiagnosticInfoOptimizationBase::Argument::Argument ( StringRef  Key,
int  N 
)

Definition at line 221 of file DiagnosticInfo.cpp.

DiagnosticInfoOptimizationBase::Argument::Argument ( StringRef  Key,
unsigned  N 
)

Definition at line 224 of file DiagnosticInfo.cpp.

llvm::DiagnosticInfoOptimizationBase::Argument::Argument ( StringRef  Key,
bool  B 
)
inline

Definition at line 424 of file DiagnosticInfo.h.

Member Data Documentation

StringRef llvm::DiagnosticInfoOptimizationBase::Argument::Key
DiagnosticLocation llvm::DiagnosticInfoOptimizationBase::Argument::Loc
std::string llvm::DiagnosticInfoOptimizationBase::Argument::Val

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