Skip to content

Commit a9147e6

Browse files
Revert "[DWARFLinker] Use different addresses to distinguish invalid … (#149422)
…DW_AT_LLVM_stmt_sequence offset (#149376)" This reverts commit b0c6148.
1 parent c244c3b commit a9147e6

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

llvm/lib/DWARFLinker/Classic/DWARFLinker.cpp

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,6 @@ namespace llvm {
4343
using namespace dwarf_linker;
4444
using namespace dwarf_linker::classic;
4545

46-
enum InvalidStmtSeqOffset {
47-
MaxStmtSeqOffset = UINT64_MAX,
48-
OrigOffsetMissing = MaxStmtSeqOffset - 1,
49-
NewOffsetMissing = MaxStmtSeqOffset - 2,
50-
};
51-
5246
/// Hold the input and output of the debug info size in bytes.
5347
struct DebugInfoSize {
5448
uint64_t Input;
@@ -2321,7 +2315,7 @@ void DWARFLinker::DIECloner::generateLineTableForUnit(CompileUnit &Unit) {
23212315
// Some sequences are discarded by the DWARFLinker if they are invalid
23222316
// (empty).
23232317
if (OrigRowIter == SeqOffToOrigRow.end()) {
2324-
StmtSeq.set(OrigOffsetMissing);
2318+
StmtSeq.set(UINT64_MAX);
23252319
continue;
23262320
}
23272321
size_t OrigRowIndex = OrigRowIter->second;
@@ -2331,7 +2325,7 @@ void DWARFLinker::DIECloner::generateLineTableForUnit(CompileUnit &Unit) {
23312325
if (NewRowIter == OrigRowToNewRow.end()) {
23322326
// If the original row index is not found in the map, update the
23332327
// stmt_sequence attribute to the 'invalid offset' magic value.
2334-
StmtSeq.set(NewOffsetMissing);
2328+
StmtSeq.set(UINT64_MAX);
23352329
continue;
23362330
}
23372331

0 commit comments

Comments
 (0)