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
const std::string & getName (std::string &F) 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 384 of file DebugInfo.h.


Constructor & Destructor Documentation

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

Definition at line 386 of file DebugInfo.h.

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


Member Function Documentation

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

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

Definition at line 393 of file DebugInfo.h.

References llvm::DIDescriptor::getStringField().

Referenced by dump(), and llvm::getLocationInfo().

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

Definition at line 396 of file DebugInfo.h.

Referenced by dump(), and llvm::getLocationInfo().

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

Definition at line 397 of file DebugInfo.h.

References llvm::DIDescriptor::getUnsignedField().

Referenced by dump(), and llvm::getLocationInfo().

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

Definition at line 398 of file DebugInfo.h.

Referenced by dump(), llvm::getLocationInfo(), and Verify().

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

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

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

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

void DIVariable::dump (  )  const

dump - print variable.

dump - Print variable.

Reimplemented from llvm::DIDescriptor.

Definition at line 454 of file DebugInfo.cpp.

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


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