LLVM API Documentation
This struct describes location entries emitted in the .debug_loc section. More...
#include <DebugLocEntry.h>
Classes | |
struct | Value |
A single location or constant. More... | |
Public Member Functions | |
DebugLocEntry (const MCSymbol *B, const MCSymbol *E, Value Val) | |
bool | MergeValues (const DebugLocEntry &Next) |
If this and Next are describing different pieces of the same. | |
bool | MergeRanges (const DebugLocEntry &Next) |
Attempt to merge this DebugLocEntry with Next and return true if the merge was successful. Entries can be merged if they share the same Loc/Constant and if Next immediately follows this Entry. | |
const MCSymbol * | getBeginSym () const |
const MCSymbol * | getEndSym () const |
ArrayRef< Value > | getValues () const |
void | addValues (ArrayRef< DebugLocEntry::Value > Vals) |
void | sortUniqueValues () |
This struct describes location entries emitted in the .debug_loc section.
Definition at line 21 of file DebugLocEntry.h.
Definition at line 83 of file DebugLocEntry.h.
References llvm::SmallVectorTemplateBase< T, isPodLike >::push_back().
void llvm::DebugLocEntry::addValues | ( | ArrayRef< DebugLocEntry::Value > | Vals | ) | [inline] |
Definition at line 122 of file DebugLocEntry.h.
References llvm::SmallVectorImpl< T >::append(), llvm::SmallVectorTemplateCommon< T, typename >::begin(), llvm::ArrayRef< T >::begin(), llvm::SmallVectorTemplateCommon< T, typename >::end(), llvm::ArrayRef< T >::end(), and sortUniqueValues().
Referenced by MergeValues().
const MCSymbol* llvm::DebugLocEntry::getBeginSym | ( | ) | const [inline] |
Definition at line 119 of file DebugLocEntry.h.
const MCSymbol* llvm::DebugLocEntry::getEndSym | ( | ) | const [inline] |
Definition at line 120 of file DebugLocEntry.h.
ArrayRef<Value> llvm::DebugLocEntry::getValues | ( | ) | const [inline] |
Definition at line 121 of file DebugLocEntry.h.
Referenced by llvm::DwarfDebug::emitDebugLocEntry().
bool llvm::DebugLocEntry::MergeRanges | ( | const DebugLocEntry & | Next | ) | [inline] |
Attempt to merge this DebugLocEntry with Next and return true if the merge was successful. Entries can be merged if they share the same Loc/Constant and if Next immediately follows this Entry.
Definition at line 110 of file DebugLocEntry.h.
bool llvm::DebugLocEntry::MergeValues | ( | const DebugLocEntry & | Next | ) | [inline] |
If this and Next are describing different pieces of the same.
Definition at line 92 of file DebugLocEntry.h.
References addValues(), llvm::DIVariable::getName(), llvm::DIVariable::isVariablePiece(), and llvm::SmallVectorTemplateCommon< T, typename >::size().
void llvm::DebugLocEntry::sortUniqueValues | ( | ) | [inline] |
Definition at line 132 of file DebugLocEntry.h.
References llvm::ARM_PROC::A, llvm::SmallVectorTemplateCommon< T, typename >::begin(), llvm::SmallVectorTemplateCommon< T, typename >::end(), llvm::SmallVectorImpl< T >::erase(), and llvm::DebugLocEntry::Value::getVariable().
Referenced by addValues().