File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed
llvm/lib/DWARFLinker/Classic Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -43,12 +43,6 @@ namespace llvm {
43
43
using namespace dwarf_linker ;
44
44
using namespace dwarf_linker ::classic;
45
45
46
- enum InvalidStmtSeqOffset {
47
- MaxStmtSeqOffset = UINT64_MAX,
48
- OrigOffsetMissing = MaxStmtSeqOffset - 1 ,
49
- NewOffsetMissing = MaxStmtSeqOffset - 2 ,
50
- };
51
-
52
46
// / Hold the input and output of the debug info size in bytes.
53
47
struct DebugInfoSize {
54
48
uint64_t Input;
@@ -2321,7 +2315,7 @@ void DWARFLinker::DIECloner::generateLineTableForUnit(CompileUnit &Unit) {
2321
2315
// Some sequences are discarded by the DWARFLinker if they are invalid
2322
2316
// (empty).
2323
2317
if (OrigRowIter == SeqOffToOrigRow.end ()) {
2324
- StmtSeq.set (OrigOffsetMissing );
2318
+ StmtSeq.set (UINT64_MAX );
2325
2319
continue ;
2326
2320
}
2327
2321
size_t OrigRowIndex = OrigRowIter->second ;
@@ -2331,7 +2325,7 @@ void DWARFLinker::DIECloner::generateLineTableForUnit(CompileUnit &Unit) {
2331
2325
if (NewRowIter == OrigRowToNewRow.end ()) {
2332
2326
// If the original row index is not found in the map, update the
2333
2327
// stmt_sequence attribute to the 'invalid offset' magic value.
2334
- StmtSeq.set (NewOffsetMissing );
2328
+ StmtSeq.set (UINT64_MAX );
2335
2329
continue ;
2336
2330
}
2337
2331
You can’t perform that action at this time.
0 commit comments