LLVM  6.0.0svn
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:
Inheritance graph
[legend]
Collaboration diagram for llvm::DiagnosticInfoOptimizationBase::Argument:
Collaboration graph
[legend]

Public Member Functions

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

Public Attributes

std::string 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 407 of file DiagnosticInfo.h.

Constructor & Destructor Documentation

◆ Argument() [1/12]

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

Definition at line 413 of file DiagnosticInfo.h.

References N.

◆ Argument() [2/12]

DiagnosticInfoOptimizationBase::Argument::Argument ( StringRef  Key,
const Value V 
)

◆ Argument() [3/12]

DiagnosticInfoOptimizationBase::Argument::Argument ( StringRef  Key,
const Type T 
)

Definition at line 158 of file DiagnosticInfo.cpp.

References T, and Val.

◆ Argument() [4/12]

DiagnosticInfoOptimizationBase::Argument::Argument ( StringRef  Key,
StringRef  S 
)

Definition at line 164 of file DiagnosticInfo.cpp.

◆ Argument() [5/12]

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

Definition at line 167 of file DiagnosticInfo.cpp.

◆ Argument() [6/12]

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

Definition at line 170 of file DiagnosticInfo.cpp.

◆ Argument() [7/12]

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

Definition at line 173 of file DiagnosticInfo.cpp.

◆ Argument() [8/12]

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

Definition at line 176 of file DiagnosticInfo.cpp.

◆ Argument() [9/12]

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

Definition at line 179 of file DiagnosticInfo.cpp.

◆ Argument() [10/12]

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

Definition at line 183 of file DiagnosticInfo.cpp.

◆ Argument() [11/12]

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

Definition at line 423 of file DiagnosticInfo.h.

◆ Argument() [12/12]

DiagnosticInfoOptimizationBase::Argument::Argument ( StringRef  Key,
DebugLoc  dl 
)

Definition at line 187 of file DiagnosticInfo.cpp.

References llvm::DebugLoc::getCol(), llvm::DebugLoc::getLine(), and Val.

Member Data Documentation

◆ Key

std::string llvm::DiagnosticInfoOptimizationBase::Argument::Key

◆ Loc

DiagnosticLocation llvm::DiagnosticInfoOptimizationBase::Argument::Loc

◆ Val

std::string llvm::DiagnosticInfoOptimizationBase::Argument::Val

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