aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Rong <peterrong96@gmail.com>2025-07-18 09:11:59 -0700
committerGitHub <noreply@github.com>2025-07-18 09:11:59 -0700
commita9147e64aa751caaa106953fded2d0f7223bb167 (patch)
tree1fbca93729bfbff93048a2512df905f4b2502127
parentc244c3b2d95a1605337b1156fad412ee2c9cd8c9 (diff)
downloadllvm-a9147e64aa751caaa106953fded2d0f7223bb167.zip
llvm-a9147e64aa751caaa106953fded2d0f7223bb167.tar.gz
llvm-a9147e64aa751caaa106953fded2d0f7223bb167.tar.bz2
Revert "[DWARFLinker] Use different addresses to distinguish invalid … (#149422)
…DW_AT_LLVM_stmt_sequence offset (#149376)" This reverts commit b0c6148584854af3d7ed2425034c3b5252f6b769.
-rw-r--r--llvm/lib/DWARFLinker/Classic/DWARFLinker.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/llvm/lib/DWARFLinker/Classic/DWARFLinker.cpp b/llvm/lib/DWARFLinker/Classic/DWARFLinker.cpp
index 559d808..222dc88 100644
--- a/llvm/lib/DWARFLinker/Classic/DWARFLinker.cpp
+++ b/llvm/lib/DWARFLinker/Classic/DWARFLinker.cpp
@@ -43,12 +43,6 @@ namespace llvm {
using namespace dwarf_linker;
using namespace dwarf_linker::classic;
-enum InvalidStmtSeqOffset {
- MaxStmtSeqOffset = UINT64_MAX,
- OrigOffsetMissing = MaxStmtSeqOffset - 1,
- NewOffsetMissing = MaxStmtSeqOffset - 2,
-};
-
/// Hold the input and output of the debug info size in bytes.
struct DebugInfoSize {
uint64_t Input;
@@ -2321,7 +2315,7 @@ void DWARFLinker::DIECloner::generateLineTableForUnit(CompileUnit &Unit) {
// Some sequences are discarded by the DWARFLinker if they are invalid
// (empty).
if (OrigRowIter == SeqOffToOrigRow.end()) {
- StmtSeq.set(OrigOffsetMissing);
+ StmtSeq.set(UINT64_MAX);
continue;
}
size_t OrigRowIndex = OrigRowIter->second;
@@ -2331,7 +2325,7 @@ void DWARFLinker::DIECloner::generateLineTableForUnit(CompileUnit &Unit) {
if (NewRowIter == OrigRowToNewRow.end()) {
// If the original row index is not found in the map, update the
// stmt_sequence attribute to the 'invalid offset' magic value.
- StmtSeq.set(NewOffsetMissing);
+ StmtSeq.set(UINT64_MAX);
continue;
}