forked from llvm-mirror/llvm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[dsymutil] Accept line tables up to DWARFv5.
This patch removes the hard-coded check for DWARFv2 line tables. Now dsymutil accepts line tables for DWARF versions 2 to 5 (inclusive). Differential revision: https://reviews.llvm.org/D41084 rdar://35968319 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@320469 91177308-0d34-0410-b5e6-96231b3b80d8
- Loading branch information
1 parent
45aa4ec
commit e75cd38
Showing
5 changed files
with
54 additions
and
3 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# RUN: llvm-dsymutil -f -oso-prepend-path=%p/../Inputs/ -y %s -o - | llvm-dwarfdump -debug-line - | FileCheck %s | ||
|
||
# Source: | ||
# int main() { | ||
# return 0; | ||
# } | ||
# Compile with: | ||
# clang -gdwarf-4 dwarf4.c -c -o dwarf4.o | ||
|
||
--- | ||
triple: 'x86_64-apple-darwin' | ||
objects: | ||
- filename: dwarf4.o | ||
timestamp: 1513021112 | ||
symbols: | ||
- { sym: _main, objAddr: 0x0000000000000000, binAddr: 0x0000000100000FA0, size: 0x0000000F } | ||
... | ||
|
||
# CHECK: .debug_line contents: | ||
# CHECK: debug_line | ||
# CHECK: Line table prologue: | ||
# CHECK: total_length: | ||
# CHECK: version: 4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# RUN: llvm-dsymutil -f -oso-prepend-path=%p/../Inputs/ -y %s -o - | llvm-dwarfdump -debug-line - | FileCheck %s | ||
|
||
# Source: | ||
# int main() { | ||
# return 0; | ||
# } | ||
# Compile with: | ||
# clang -gdwarf-5 dwarf5.c -c -o dwarf5.o | ||
|
||
--- | ||
triple: 'x86_64-apple-darwin' | ||
objects: | ||
- filename: dwarf5.o | ||
timestamp: 1513021112 | ||
symbols: | ||
- { sym: _main, objAddr: 0x0000000000000000, binAddr: 0x0000000100000FA0, size: 0x0000000F } | ||
... | ||
|
||
# CHECK: .debug_line contents: | ||
# CHECK: debug_line | ||
# CHECK: Line table prologue: | ||
# CHECK: total_length: | ||
# CHECK: version: 5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters