LLVM API Documentation
DIScope - A base class for various scopes. More...
#include <DebugInfo.h>


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 |
DIScope - A base class for various scopes.
Definition at line 162 of file DebugInfo.h.
| llvm::DIScope::DIScope | ( | const MDNode * | N = 0 | ) | [inline, explicit] |
Definition at line 167 of file DebugInfo.h.
References N.
| StringRef DIScope::getDirectory | ( | ) | const |
Definition at line 716 of file DebugInfo.cpp.
References llvm::DIDescriptor::DbgNode, getNodeField(), and llvm::DIDescriptor::getStringField().
Referenced by llvm::CompileUnit::addSourceLine(), llvm::DILocation::getDirectory(), llvm::jitprofiling::FilenameCache::getFullPath(), and printInternal().
| StringRef DIScope::getFilename | ( | ) | const |
Definition at line 710 of file DebugInfo.cpp.
References llvm::DIDescriptor::DbgNode, getNodeField(), and llvm::DIDescriptor::getStringField().
Referenced by llvm::CompileUnit::addSourceLine(), llvm::jitprofiling::FilenameCache::getFilename(), llvm::DILocation::getFilename(), llvm::jitprofiling::FilenameCache::getFullPath(), printInternal(), llvm::DICompileUnit::Verify(), and llvm::DIType::Verify().
| 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().
friend class DIDescriptor [friend] |
Reimplemented in llvm::DINameSpace, llvm::DISubprogram, llvm::DICompositeType, llvm::DIDerivedType, llvm::DIType, llvm::DICompileUnit, and llvm::DIFile.
Definition at line 164 of file DebugInfo.h.