LLVM API Documentation

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)
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 933 of file DebugInfo.h.


Constructor & Destructor Documentation

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

Definition at line 941 of file DebugInfo.h.

References N.

Definition at line 942 of file DebugInfo.h.


Member Function Documentation

Definition at line 946 of file DebugInfo.h.

References N, and RETURN_FROM_RAW.

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

Definition at line 948 of file DebugInfo.h.

References N, and RETURN_DESCRIPTOR_FROM_RAW.

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

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

Definition at line 951 of file DebugInfo.h.

References N, and RETURN_DESCRIPTOR_FROM_RAW.

If this variable is inlined then return inline location.

Definition at line 964 of file DebugInfo.h.

References N, and RETURN_DESCRIPTOR_FROM_RAW.

Referenced by llvm::MachineInstr::print().

Definition at line 945 of file DebugInfo.h.

References N, and RETURN_FROM_RAW.

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

Definition at line 944 of file DebugInfo.h.

References N, and RETURN_FROM_RAW.

Referenced by emitDebugValueComment(), llvm::DbgVariable::getName(), and llvm::MachineInstr::print().

Definition at line 952 of file DebugInfo.h.

References N, and RETURN_REF_FROM_RAW.

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

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

Definition at line 955 of file DebugInfo.h.

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

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

Definition at line 971 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 444 of file DebugInfo.cpp.

References llvm::DISubprogram::describes().

Definition at line 959 of file DebugInfo.h.

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


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