LLVM API Documentation

llvm::DIVariable Class Reference

#include <DebugInfo.h>

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

List of all members.

Public Member Functions

 DIVariable (GlobalVariable *GV=0)
DIDescriptor getContext () const
std::string getName () const
DICompileUnit getCompileUnit () const
unsigned getLineNumber () const
DIType getType () const
bool Verify () const
 Verify - Verify that a variable descriptor is well formed.
void dump () const
 dump - print variable.

Static Public Member Functions

static bool isVariable (unsigned Tag)
 isVariable - Return true if the specified tag is legal for DIVariable.


Detailed Description

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

Definition at line 305 of file DebugInfo.h.


Constructor & Destructor Documentation

DIVariable::DIVariable ( GlobalVariable *  GV = 0  )  [explicit]

Definition at line 172 of file DebugInfo.cpp.

References llvm::DIDescriptor::getTag(), and isVariable().


Member Function Documentation

DIDescriptor llvm::DIVariable::getContext (  )  const [inline]

Definition at line 309 of file DebugInfo.h.

References llvm::DIDescriptor::getDescriptorField().

Referenced by Verify().

std::string llvm::DIVariable::getName (  )  const [inline]

Definition at line 310 of file DebugInfo.h.

References llvm::DIDescriptor::getStringField().

Referenced by dump().

DICompileUnit llvm::DIVariable::getCompileUnit (  )  const [inline]

Definition at line 311 of file DebugInfo.h.

Referenced by dump().

unsigned llvm::DIVariable::getLineNumber (  )  const [inline]

Definition at line 312 of file DebugInfo.h.

References llvm::DIDescriptor::getUnsignedField().

Referenced by dump().

DIType llvm::DIVariable::getType (  )  const [inline]

Definition at line 313 of file DebugInfo.h.

Referenced by dump(), and Verify().

bool DIVariable::isVariable ( unsigned  Tag  )  [static]

isVariable - Return true if the specified tag is legal for DIVariable.

Definition at line 161 of file DebugInfo.cpp.

References llvm::dwarf::DW_TAG_arg_variable, llvm::dwarf::DW_TAG_auto_variable, and llvm::dwarf::DW_TAG_return_variable.

Referenced by DIVariable().

bool DIVariable::Verify (  )  const

Verify - Verify that a variable descriptor is well formed.

Definition at line 261 of file DebugInfo.cpp.

References getContext(), getType(), llvm::DIDescriptor::isNull(), Ty, and llvm::DIType::Verify().

void DIVariable::dump (  )  const

dump - print variable.

Definition at line 942 of file DebugInfo.cpp.

References llvm::cerr(), llvm::DIType::dump(), llvm::DICompileUnit::dump(), getCompileUnit(), getLineNumber(), getName(), and getType().


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