1*9880d681SAndroid Build Coastguard WorkerRUN: llvm-dwp %p/../Inputs/merge/notypes/c.dwo %p/../Inputs/merge/notypes/ab.dwp -o %t 2*9880d681SAndroid Build Coastguard WorkerRUN: llvm-dwarfdump %t | FileCheck --check-prefix=CHECK --check-prefix=NOTYP %s 3*9880d681SAndroid Build Coastguard Worker 4*9880d681SAndroid Build Coastguard WorkerFIXME: For some reason, piping straight from llvm-dwp to llvm-dwarfdump doesn't behave well - looks like dwarfdump is reading/closes before dwp has finished. 5*9880d681SAndroid Build Coastguard Worker 6*9880d681SAndroid Build Coastguard WorkerDWP from a DWO (c.dwo) and a DWP (ab.dwp, created from a.dwo and b.dwo) 7*9880d681SAndroid Build Coastguard WorkerMake sure the entries for A and B are updated correctly when read/processed from ab.dwp 8*9880d681SAndroid Build Coastguard Workera.cpp: 9*9880d681SAndroid Build Coastguard Worker struct foo { }; 10*9880d681SAndroid Build Coastguard Worker foo a; 11*9880d681SAndroid Build Coastguard Worker 12*9880d681SAndroid Build Coastguard Workerb.cpp: 13*9880d681SAndroid Build Coastguard Worker struct bar { }; 14*9880d681SAndroid Build Coastguard Worker void b(bar) { 15*9880d681SAndroid Build Coastguard Worker } 16*9880d681SAndroid Build Coastguard Worker 17*9880d681SAndroid Build Coastguard Workerc.cpp: 18*9880d681SAndroid Build Coastguard Worker typedef int baz; 19*9880d681SAndroid Build Coastguard Worker baz c() { 20*9880d681SAndroid Build Coastguard Worker } 21*9880d681SAndroid Build Coastguard Worker 22*9880d681SAndroid Build Coastguard WorkerCHECK-LABEL: .debug_abbrev.dwo contents: 23*9880d681SAndroid Build Coastguard WorkerCHECK-LABEL: Abbrev table for offset: 24*9880d681SAndroid Build Coastguard WorkerCHECK: 0x0000[[CAOFF:.*]] 25*9880d681SAndroid Build Coastguard WorkerCHECK-LABEL: Abbrev table for offset: 26*9880d681SAndroid Build Coastguard WorkerCHECK: 0x0000[[AAOFF:.*]] 27*9880d681SAndroid Build Coastguard WorkerCHECK-LABEL: Abbrev table for offset: 28*9880d681SAndroid Build Coastguard WorkerCHECK: 0x0000[[BAOFF:.*]] 29*9880d681SAndroid Build Coastguard Worker 30*9880d681SAndroid Build Coastguard WorkerCHECK: .debug_info.dwo contents: 31*9880d681SAndroid Build Coastguard WorkerCHECK: [[COFF:0x[0-9a-f]*]]: 32*9880d681SAndroid Build Coastguard WorkerCHECK-LABEL: Compile Unit: length = {{.*}} version = 0x0004 abbr_offset = 33*9880d681SAndroid Build Coastguard WorkerCHECK: 0x[[CAOFF]] addr_size = 0x08 (next unit at [[AOFF:.*]]) 34*9880d681SAndroid Build Coastguard WorkerCHECK: DW_AT_GNU_dwo_id {{.*}} ([[DWOC:.*]]) 35*9880d681SAndroid Build Coastguard WorkerCHECK: [[AOFF]]: 36*9880d681SAndroid Build Coastguard WorkerCHECK-LABEL: Compile Unit: length = {{.*}} version = 0x0004 abbr_offset = 37*9880d681SAndroid Build Coastguard WorkerCHECK: 0x[[AAOFF]] addr_size = 0x08 (next unit at [[BOFF:.*]]) 38*9880d681SAndroid Build Coastguard WorkerCHECK: DW_AT_GNU_dwo_id {{.*}} ([[DWOA:.*]]) 39*9880d681SAndroid Build Coastguard WorkerCHECK: [[BOFF]]: 40*9880d681SAndroid Build Coastguard WorkerCHECK-LABEL: Compile Unit: length = {{.*}} version = 0x0004 abbr_offset = 41*9880d681SAndroid Build Coastguard WorkerCHECK: 0x[[BAOFF]] addr_size = 0x08 (next unit at [[XOFF:.*]]) 42*9880d681SAndroid Build Coastguard WorkerCHECK: DW_AT_GNU_dwo_id {{.*}} ([[DWOB:.*]]) 43*9880d681SAndroid Build Coastguard Worker 44*9880d681SAndroid Build Coastguard WorkerCHECK-LABEL: .debug_cu_index 45*9880d681SAndroid Build Coastguard WorkerCHECK: Index Signature INFO ABBREV LINE STR_OFFSETS 46*9880d681SAndroid Build Coastguard WorkerCHECK-DAG: [[DWOC]] {{\[}}[[COFF]], [[AOFF]]) [0x0000[[CAOFF]], 0x0000[[AAOFF]]) [0x00000000, 0x00000011) [0x00000000, 0x00000018) 47*9880d681SAndroid Build Coastguard WorkerCHECK-DAG: [[DWOA]] {{\[}}[[AOFF]], [[BOFF]]) [0x0000[[AAOFF]], 0x0000[[BAOFF]]) [0x00000011, 0x00000022) [0x00000018, 0x00000028) 48*9880d681SAndroid Build Coastguard WorkerCHECK-DAG: [[DWOB]] {{\[}}[[BOFF]], [[XOFF]]) [0x0000[[BAOFF]], 0x000000c3) [0x00000022, 0x00000033) [0x00000028, 0x0000003c) 49