LLVM  mainline
Public Member Functions | Static Public Member Functions | Protected Member Functions
llvm::DIVariable Class Reference

Base class for variables. More...

#include <DebugInfoMetadata.h>

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

List of all members.

Public Member Functions

unsigned getLine () const
DIScopegetScope () const
StringRef getName () const
DIFilegetFile () const
DITypeRef getType () const
StringRef getFilename () const
StringRef getDirectory () const
MetadatagetRawScope () const
MDStringgetRawName () const
MetadatagetRawFile () const
MetadatagetRawType () const

Static Public Member Functions

static bool classof (const Metadata *MD)
 Methods for support type inquiry through isa, cast, and dyn_cast:

Protected Member Functions

 DIVariable (LLVMContext &C, unsigned ID, StorageType Storage, unsigned Tag, unsigned Line, ArrayRef< Metadata * > Ops)
 ~DIVariable ()

Detailed Description

Base class for variables.

TODO: Hardcode to DW_TAG_variable.

Definition at line 1728 of file DebugInfoMetadata.h.


Constructor & Destructor Documentation

llvm::DIVariable::DIVariable ( LLVMContext C,
unsigned  ID,
StorageType  Storage,
unsigned  Tag,
unsigned  Line,
ArrayRef< Metadata * >  Ops 
) [inline, protected]

Definition at line 1732 of file DebugInfoMetadata.h.


Member Function Documentation

static bool llvm::DIVariable::classof ( const Metadata MD) [inline, static]

Methods for support type inquiry through isa, cast, and dyn_cast:

Reimplemented from llvm::DINode.

Reimplemented in llvm::DILocalVariable, and llvm::DIGlobalVariable.

Definition at line 1760 of file DebugInfoMetadata.h.

References llvm::Metadata::DIGlobalVariableKind, llvm::Metadata::DILocalVariableKind, and llvm::Metadata::getMetadataID().

Definition at line 1749 of file DebugInfoMetadata.h.

References F(), and getFile().

Referenced by llvm::DwarfUnit::addSourceLine().

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

Definition at line 1744 of file DebugInfoMetadata.h.

References F(), and getFile().

Referenced by llvm::DwarfUnit::addSourceLine().

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

Definition at line 1756 of file DebugInfoMetadata.h.

Referenced by WriteDIGlobalVariable(), and WriteDILocalVariable().

DIScope* llvm::DIVariable::getScope ( ) const [inline]

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