LLVM  mainline
Public Member Functions
llvm::DIVariable Class Reference

This is a wrapper for a variable (e.g. parameter, local, global etc). More...

#include <DebugInfo.h>

Inheritance diagram for llvm::DIVariable:
Inheritance graph
[legend]
Collaboration diagram for llvm::DIVariable:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 DIVariable (const MDNode *N=nullptr)
 DIVariable (const MDLocalVariable *N)
MDLocalVariableget () const
 operator MDLocalVariable * () const
MDLocalVariableoperator-> () const
MDLocalVariableoperator* () const
StringRef getName () const
unsigned getLineNumber () const
unsigned getArgNumber () const
DIScope getContext () const
DIFile getFile () const
DITypeRef getType () const
bool isArtificial () const
 Return true if this variable is marked as "artificial".
bool isObjectPointer () const
MDNodegetInlinedAt () const
 If this variable is inlined then return inline location.
bool Verify () const
bool isBlockByrefVariable (const DITypeIdentifierMap &Map) const
 Check if this is a "__block" variable (Apple Blocks).
bool isInlinedFnArgument (const Function *CurFn)
 Check if this is an inlined function argument.
unsigned getSizeInBits (const DITypeIdentifierMap &Map)
 Return the size reported by the variable's type.
void printExtendedName (raw_ostream &OS) const

Detailed Description

This is a wrapper for a variable (e.g. parameter, local, global etc).

Definition at line 996 of file DebugInfo.h.


Constructor & Destructor Documentation

llvm::DIVariable::DIVariable ( const MDNode N = nullptr) [inline, explicit]

Definition at line 1000 of file DebugInfo.h.

References N.

Definition at line 1001 of file DebugInfo.h.


Member Function Documentation

Reimplemented from llvm::DIDescriptor.

Definition at line 1003 of file DebugInfo.h.

Referenced by getType().

Definition at line 1015 of file DebugInfo.h.

Referenced by llvm::DwarfFile::addScopeVariable().

Definition at line 1017 of file DebugInfo.h.

Referenced by llvm::DwarfUnit::addSourceLine(), and emitDebugValueComment().

DIFile llvm::DIVariable::getFile ( ) const [inline]

Definition at line 1018 of file DebugInfo.h.

References getFile().

Referenced by getFile().

If this variable is inlined then return inline location.

Definition at line 1031 of file DebugInfo.h.

References llvm::DIDescriptor::DIDescriptor(), and getInlinedAt().

Referenced by getInlinedAt(), and llvm::MachineInstr::print().

Definition at line 1014 of file DebugInfo.h.

Referenced by llvm::DwarfUnit::addSourceLine(), and llvm::MachineInstr::print().

Definition at line 1019 of file DebugInfo.h.

References get(), and getType().

Referenced by emitDebugLocValue(), llvm::DbgVariable::getType(), getType(), and isBlockByrefVariable().

Return true if this variable is marked as "artificial".

Definition at line 1022 of file DebugInfo.h.

Referenced by llvm::DbgVariable::isArtificial().

Check if this is a "__block" variable (Apple Blocks).

Definition at line 1036 of file DebugInfo.h.

References getType().

Referenced by llvm::DbgVariable::getType(), and llvm::DbgVariable::isBlockByrefVariable().

Check if this is an inlined function argument.

Definition at line 316 of file DebugInfo.cpp.

References llvm::DISubprogram::describes().

Definition at line 1026 of file DebugInfo.h.

Referenced by llvm::DbgVariable::isObjectPointer().

llvm::DIVariable::operator MDLocalVariable * ( ) const [inline]

Definition at line 1006 of file DebugInfo.h.

MDLocalVariable& llvm::DIVariable::operator* ( ) const [inline]

Reimplemented from llvm::DIDescriptor.

Definition at line 1008 of file DebugInfo.h.

MDLocalVariable* llvm::DIVariable::operator-> ( ) const [inline]

Reimplemented from llvm::DIDescriptor.

Definition at line 1007 of file DebugInfo.h.

Definition at line 765 of file DebugInfo.cpp.

References llvm::StringRef::empty(), getName(), and printDebugLoc().


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