LLVM API Documentation
#include <DebugInfo.h>
Public Member Functions | |
DILocation (const MDNode *N) | |
unsigned | getLineNumber () const |
unsigned | getColumnNumber () const |
DIScope | getScope () const |
DILocation | getOrigLocation () const |
StringRef | getFilename () const |
StringRef | getDirectory () const |
bool | Verify () const |
Verify - Verify that a location descriptor is well formed. | |
bool | atSameLineAs (const DILocation &Other) const |
unsigned | getDiscriminator () const |
unsigned | computeNewDiscriminator (LLVMContext &Ctx) |
DILocation | copyWithNewScope (LLVMContext &Ctx, DILexicalBlockFile NewScope) |
DILocation - This object holds location information. This object is not associated with any DWARF tag.
Definition at line 763 of file DebugInfo.h.
llvm::DILocation::DILocation | ( | const MDNode * | N | ) | [inline, explicit] |
Definition at line 765 of file DebugInfo.h.
bool llvm::DILocation::atSameLineAs | ( | const DILocation & | Other | ) | const [inline] |
Definition at line 774 of file DebugInfo.h.
References getFilename(), and getLineNumber().
computeNewDiscriminator - Generate a new discriminator value for this file and line location.
Definition at line 870 of file DebugInfo.cpp.
References llvm::LLVMContextImpl::DiscriminatorTable, and llvm::LLVMContext::pImpl.
DILocation DILocation::copyWithNewScope | ( | LLVMContext & | Ctx, |
DILexicalBlockFile | NewScope | ||
) |
copyWithNewScope - Return a copy of this location, replacing the current scope with the given one.
Definition at line 854 of file DebugInfo.cpp.
References llvm::MDNode::get(), I, llvm::SmallVectorTemplateBase< T, isPodLike< T >::value >::push_back(), and Verify.
unsigned llvm::DILocation::getColumnNumber | ( | ) | const [inline] |
Definition at line 768 of file DebugInfo.h.
References llvm::DIDescriptor::getUnsignedField().
Referenced by llvm::DebugLoc::getFromDILocation(), and llvm::DiagnosticInfoOptimizationBase::getLocation().
StringRef llvm::DILocation::getDirectory | ( | ) | const [inline] |
Definition at line 772 of file DebugInfo.h.
References llvm::DIScope::getDirectory(), and getScope().
unsigned llvm::DILocation::getDiscriminator | ( | ) | const [inline] |
getDiscriminator - DWARF discriminators are used to distinguish identical file locations for instructions that are on different basic blocks. If two instructions are inside the same lexical block and are in different basic blocks, we create a new lexical block with identical location as the original but with a different discriminator value (lib/Transforms/Util/AddDiscriminators.cpp for details).
Definition at line 785 of file DebugInfo.h.
References getScope(), and llvm::DIDescriptor::isLexicalBlockFile().
StringRef llvm::DILocation::getFilename | ( | ) | const [inline] |
Definition at line 771 of file DebugInfo.h.
References llvm::DIScope::getFilename(), and getScope().
Referenced by atSameLineAs(), and llvm::DiagnosticInfoOptimizationBase::getLocation().
unsigned llvm::DILocation::getLineNumber | ( | ) | const [inline] |
Definition at line 767 of file DebugInfo.h.
References llvm::DIDescriptor::getUnsignedField().
Referenced by atSameLineAs(), llvm::DebugLoc::getFromDILocation(), and llvm::DiagnosticInfoOptimizationBase::getLocation().
DILocation llvm::DILocation::getOrigLocation | ( | ) | const [inline] |
Definition at line 770 of file DebugInfo.h.
Referenced by llvm::DebugLoc::getFromDILocation(), and llvm::DebugInfoFinder::processLocation().
DIScope llvm::DILocation::getScope | ( | ) | const [inline] |
Definition at line 769 of file DebugInfo.h.
Referenced by getDirectory(), getDiscriminator(), getFilename(), llvm::DebugLoc::getFromDILocation(), and llvm::DebugInfoFinder::processLocation().
bool DILocation::Verify | ( | ) | const |
Verify - Verify that a location descriptor is well formed.
Reimplemented from llvm::DIDescriptor.
Definition at line 608 of file DebugInfo.cpp.