[PATCH] D49381: [DWARF] Unclamp line table version on Darwin for v5 and later.

Jonas Devlieghere via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 31 05:48:14 PDT 2018


JDevlieghere added inline comments.


================
Comment at: llvm/test/CodeGen/Generic/dwarf-md5.ll:5
 ; REQUIRES: object-emission
 ; RUN: %llc_dwarf -dwarf-version 4 -filetype=asm -o - %s | FileCheck %s --check-prefix=ASM-4
 ; RUN: %llc_dwarf -dwarf-version 5 -filetype=asm -o - %s | FileCheck %s --check-prefix=ASM-5
----------------
aprantl wrote:
> why does this still work? Wouldn't it yield a DWARF v2 linetable on darwin?
Yup, but the check-lines are identical for version 4 and 2. If you dwarfdump the object file you'll find it's indeed version 2.

```
dwarf-md5.ll.tmp4.o: file format Mach-O 64-bit x86-64
.debug_line contents:
debug_line[0x00000000]
Line table prologue:
    total_length: 0x00000029
    version: 2
```


Repository:
  rL LLVM

https://reviews.llvm.org/D49381





More information about the llvm-commits mailing list