|
51 | 51 | #endif
|
52 | 52 |
|
53 | 53 | #ifdef LDC_LLVM_SUPPORTS_MACHO_DWARF_LINE_AS_REGULAR_SECTION
|
54 |
| -// LDC-LLVM >= 6.0.1: |
55 |
| -// On Mac, emit __debug_line section in __DWARF segment as regular (non-debug) |
56 |
| -// section, like DMD, to enable file/line infos in backtraces. See |
| 54 | +// LDC-LLVM >= 20: |
| 55 | +// On Darwin, emit __debug_line section in __DWARF segment as regular |
| 56 | +// (non-debug) section, like DMD, to enable file/line infos in backtraces |
| 57 | +// without having to resort to an atos process. See |
| 58 | +// https://github.com/ldc-developers/ldc/issues/4895 |
57 | 59 | // https://github.com/dlang/dmd/commit/2bf7d0db29416eacbb01a91e6502140e354ee0ef
|
58 |
| -// https://github.com/ldc-developers/llvm-project/commit/110deda1bc1cf195983fea8c1107886057987955 |
| 60 | +// https://github.com/ldc-developers/llvm-project/commit/356e996bd217afd883adf3da5fe9a16c1102b273 |
59 | 61 | static llvm::cl::opt<bool, true> preserveDwarfLineSection(
|
60 | 62 | "preserve-dwarf-line-section",
|
61 |
| - llvm::cl::desc("Mac: preserve DWARF line section during linking for " |
62 |
| - "file/line infos in backtraces. Defaults to true."), |
| 63 | + llvm::cl::desc("Darwin: preserve DWARF __debug_line section during linking " |
| 64 | + "for builtin file/line infos in backtraces without having " |
| 65 | + "to resort to an atos process."), |
63 | 66 | llvm::cl::Hidden, llvm::cl::ZeroOrMore,
|
64 | 67 | llvm::cl::location(ldc::emitMachODwarfLineAsRegularSection),
|
65 | 68 | llvm::cl::init(false));
|
|
0 commit comments