mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
37ec73c718
As discussed on llvm-dev in http://lists.llvm.org/pipermail/llvm-dev/2017-September/117301.html this changes the command line interface of llvm-dwarfdump to match the one used by the dwarfdump utility shipping on macOS. In addition to being shorter to type this format also has the advantage of allowing more than one section to be specified at the same time. In a nutshell, with this change $ llvm-dwarfdump --debug-dump=info $ llvm-dwarfdump --debug-dump=apple-objc becomes $ dwarfdump --debug-info --apple-objc Differential Revision: https://reviews.llvm.org/D37714 llvm-svn: 312970
22 lines
1.1 KiB
LLVM
22 lines
1.1 KiB
LLVM
; RUN: llc %s -o %t -filetype=obj
|
|
; RUN: llvm-dwarfdump -debug-line %t | FileCheck %s
|
|
|
|
target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128"
|
|
target triple = "x86_64-unknown-linux-gnu"
|
|
|
|
!llvm.dbg.cu = !{!0}
|
|
!llvm.module.flags = !{!5}
|
|
|
|
!0 = distinct !DICompileUnit(language: DW_LANG_C99, producer: "clang version 3.1 (trunk 143523)", isOptimized: true, emissionKind: FullDebug, file: !4, enums: !2, retainedTypes: !7, globals: !2)
|
|
!2 = !{}
|
|
!3 = !DIFile(filename: "empty.c", directory: "/home/nlewycky")
|
|
!4 = !DIFile(filename: "empty.c", directory: "/home/nlewycky")
|
|
!6 = !DICompositeType(tag: DW_TAG_structure_type, name: "foo", line: 1, size: 8, align: 8, file: !4, elements: !2, identifier: "_ZTS3foo")
|
|
!7 = !{!6}
|
|
|
|
; The important part of the following check is that dir = #0.
|
|
; Dir Mod Time File Len File Name
|
|
; ---- ---------- ---------- ---------------------------
|
|
; CHECK: file_names[ 1] 0 0x00000000 0x00000000 empty.c
|
|
!5 = !{i32 1, !"Debug Info Version", i32 3}
|