LLVM API Documentation
#include <DebugInfo.h>
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. | |
Definition at line 305 of file DebugInfo.h.
| DIVariable::DIVariable | ( | GlobalVariable * | GV = 0 |
) | [explicit] |
Definition at line 172 of file DebugInfo.cpp.
References llvm::DIDescriptor::getTag(), and isVariable().
| 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] |
| 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] |
| 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().