mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-22 10:24:26 +00:00
Constify a few things with DotDebugLocEntry.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203150 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -2526,11 +2526,11 @@ void DwarfDebug::emitDebugLoc() {
|
|||||||
unsigned char Size = Asm->getDataLayout().getPointerSize();
|
unsigned char Size = Asm->getDataLayout().getPointerSize();
|
||||||
Asm->OutStreamer.EmitLabel(Asm->GetTempSymbol("debug_loc", 0));
|
Asm->OutStreamer.EmitLabel(Asm->GetTempSymbol("debug_loc", 0));
|
||||||
unsigned index = 1;
|
unsigned index = 1;
|
||||||
for (SmallVectorImpl<DotDebugLocEntry>::iterator
|
for (SmallVectorImpl<DotDebugLocEntry>::const_iterator
|
||||||
I = DotDebugLocEntries.begin(),
|
I = DotDebugLocEntries.begin(),
|
||||||
E = DotDebugLocEntries.end();
|
E = DotDebugLocEntries.end();
|
||||||
I != E; ++I, ++index) {
|
I != E; ++I, ++index) {
|
||||||
DotDebugLocEntry &Entry = *I;
|
const DotDebugLocEntry &Entry = *I;
|
||||||
if (Entry.isMerged())
|
if (Entry.isMerged())
|
||||||
continue;
|
continue;
|
||||||
if (Entry.isEmpty()) {
|
if (Entry.isEmpty()) {
|
||||||
|
@ -124,8 +124,8 @@ public:
|
|||||||
|
|
||||||
/// \brief Empty entries are also used as a trigger to emit temp label. Such
|
/// \brief Empty entries are also used as a trigger to emit temp label. Such
|
||||||
/// labels are referenced is used to find debug_loc offset for a given DIE.
|
/// labels are referenced is used to find debug_loc offset for a given DIE.
|
||||||
bool isEmpty() { return Begin == 0 && End == 0; }
|
bool isEmpty() const { return Begin == 0 && End == 0; }
|
||||||
bool isMerged() { return Merged; }
|
bool isMerged() const { return Merged; }
|
||||||
void Merge(DotDebugLocEntry *Next) {
|
void Merge(DotDebugLocEntry *Next) {
|
||||||
if (!(Begin && Loc == Next->Loc && End == Next->Begin))
|
if (!(Begin && Loc == Next->Loc && End == Next->Begin))
|
||||||
return;
|
return;
|
||||||
|
Reference in New Issue
Block a user