mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-29 10:25:12 +00:00
use Label->isDefined() instead of isLabelDeleted() now that we
consistently use MCSymbol and only call this predicate after they should have been emitted. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98461 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -2615,7 +2615,8 @@ void DwarfDebug::emitDebugLines() {
|
||||
for (unsigned i = 0, N = LineInfos.size(); i < N; ++i) {
|
||||
const SrcLineInfo &LineInfo = LineInfos[i];
|
||||
unsigned LabelID = LineInfo.getLabelID();
|
||||
if (MMI->isLabelDeleted(LabelID)) continue;
|
||||
MCSymbol *Label = getDWLabel("label", LabelID);
|
||||
if (!Label->isDefined()) continue; // Not emitted, in dead code.
|
||||
|
||||
if (LineInfo.getLine() == 0) continue;
|
||||
|
||||
@@ -2638,8 +2639,8 @@ void DwarfDebug::emitDebugLines() {
|
||||
Asm->EmitInt8(dwarf::DW_LNE_set_address);
|
||||
|
||||
Asm->OutStreamer.AddComment("Location label");
|
||||
Asm->OutStreamer.EmitSymbolValue(getDWLabel("label", LabelID),
|
||||
TD->getPointerSize(), 0/*AddrSpace*/);
|
||||
Asm->OutStreamer.EmitSymbolValue(Label, TD->getPointerSize(),
|
||||
0/*AddrSpace*/);
|
||||
|
||||
// If change of source, then switch to the new source.
|
||||
if (Source != LineInfo.getSourceID()) {
|
||||
|
Reference in New Issue
Block a user