LLVM API Documentation

Public Member Functions | Protected Member Functions | Friends
llvm::DIScope Class Reference

DIScope - A base class for various scopes. More...

#include <DebugInfo.h>

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

List of all members.

Public Member Functions

 DIScope (const MDNode *N=0)
void setFilename (StringRef Name, LLVMContext &Context)
StringRef getFilename () const
StringRef getDirectory () const

Protected Member Functions

void printInternal (raw_ostream &OS) const

Friends

class DIDescriptor

Detailed Description

DIScope - A base class for various scopes.

Definition at line 162 of file DebugInfo.h.


Constructor & Destructor Documentation

llvm::DIScope::DIScope ( const MDNode N = 0) [inline, explicit]

Definition at line 167 of file DebugInfo.h.

References N.


Member Function Documentation

StringRef DIScope::getDirectory ( ) const
StringRef DIScope::getFilename ( ) const
void DIScope::printInternal ( raw_ostream OS) const [protected]

Reimplemented in llvm::DIType.

Definition at line 1086 of file DebugInfo.cpp.

References getDirectory(), and getFilename().

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

void DIScope::setFilename ( StringRef  Name,
LLVMContext Context 
)

Set the filename by allocating a new string MDNode for it and attaching it to the underlying node.

Definition at line 703 of file DebugInfo.cpp.

References llvm::DIDescriptor::DbgNode, llvm::MDString::get(), and getNodeField().


Friends And Related Function Documentation

friend class DIDescriptor [friend]

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