You've already forked linux-packaging-mono
acceptance-tests
data
debian
docs
external
Newtonsoft.Json
api-doc-tools
api-snapshot
aspnetwebstack
binary-reference-assemblies
bockbuild
boringssl
cecil
cecil-legacy
corefx
corert
helix-binaries
ikdasm
ikvm
illinker-test-assets
linker
llvm
bindings
cmake
docs
examples
include
lib
projects
resources
runtimes
scripts
test
Analysis
Assembler
Bindings
Bitcode
BugPoint
CodeGen
DebugInfo
AArch64
AMDGPU
ARM
COFF
Generic
Inputs
Lanai
MIR
MSP430
Mips
PDB
PowerPC
Sparc
SystemZ
WebAssembly
X86
2010-04-13-PubType.ll
2011-09-26-GlobalVarContext.ll
2011-12-16-BadStructRef.ll
DIModule.ll
DIModuleContext.ll
DW_AT_byte_size.ll
DW_AT_calling-convention.ll
DW_AT_linkage_name.ll
DW_AT_location-reference.ll
DW_AT_object_pointer.ll
DW_AT_specification.ll
DW_AT_stmt_list_sec_offset.ll
DW_TAG_friend.ll
FrameIndexExprs.ll
InlinedFnLocalVar.ll
PR26148.ll
abstract_origin.ll
align_c11.ll
align_cpp11.ll
align_objc.ll
aligned_stack_var.ll
arange-and-stub.ll
arange.ll
arguments.ll
array.ll
array2.ll
asm-macro-line-number.s
atomic-c11-dwarf-4.ll
atomic-c11-dwarf-5.ll
bbjoin.ll
bitfields-dwarf4.ll
bitfields.ll
block-capture.ll
byvalstruct.ll
c-type-units.ll
clang-module.ll
coff_debug_info_type.ll
coff_relative_names.ll
concrete_out_of_line.ll
constant-aggregate.ll
constant-loclist.ll
containing-type-extension-rust.ll
cu-ranges-odr.ll
cu-ranges.ll
data_member_location.ll
dbg-abstract-vars-g-gmlt.ll
dbg-addr-dse.ll
dbg-addr.ll
dbg-asm.s
dbg-byval-parameter.ll
dbg-const-int.ll
dbg-const.ll
dbg-declare-alloca.ll
dbg-declare-arg.ll
dbg-declare-inalloca.ll
dbg-declare.ll
dbg-file-name.ll
dbg-i128-const.ll
dbg-merge-loc-entry.ll
dbg-prolog-end.ll
dbg-subrange.ll
dbg-value-const-byref.ll
dbg-value-dag-combine.ll
dbg-value-frame-index.ll
dbg-value-g-gmlt.ll
dbg-value-inlined-parameter.ll
dbg-value-isel.ll
dbg-value-location.ll
dbg-value-range.ll
dbg-value-regmask-clobber.ll
dbg-value-terminator.ll
dbg-value-transfer-order.ll
dbg_value_direct.ll
debug-dead-local-var.ll
debug-info-access.ll
debug-info-block-captured-self.ll
debug-info-blocks.ll
debug-info-packed-struct.ll
debug-info-producer-with-flags.ll
debug-info-static-member.ll
debug-loc-asan.ll
debug-loc-frame.ll
debug-loc-offset.ll
debug-macro.ll
debug-ranges-offset.ll
debug_and_nodebug_CUs.ll
debug_frame.ll
debugger-tune.ll
decl-derived-member.ll
default-subrange-array.ll
deleted-bit-piece.ll
discriminator.ll
discriminator2.ll
discriminator3.ll
dllimport.ll
double-declare.ll
dw_op_minus.ll
dw_op_minus_direct.ll
dwarf-aranges-no-dwarf-labels.ll
dwarf-aranges.ll
dwarf-linkage-names.ll
dwarf-no-source-loc.ll
dwarf-public-names.ll
dwarf-pubnames-split.ll
dwarfdump-bogus-LNE.s
dwarfdump-debug-loc-simple.test
dwarfdump-header-64.s
dwarfdump-header.s
dwarfdump-line-dwo.s
dwarfdump-line-only.s
dwarfdump-ranges-baseaddr-exe.s
dwarfdump-ranges-baseaddr.s
dwarfdump-ranges-unrelocated.s
dwarfdump-str-offsets-dwp.s
dwarfdump-str-offsets-invalid-1.s
dwarfdump-str-offsets-invalid-2.s
dwarfdump-str-offsets-invalid-3.s
dwarfdump-str-offsets-invalid-4.s
dwarfdump-str-offsets-invalid-5.s
dwarfdump-str-offsets-invalid-6.s
dwarfdump-str-offsets-macho.s
dwarfdump-str-offsets.s
earlydup-crash.ll
elf-names.ll
empty-and-one-elem-array.ll
empty-array.ll
empty.ll
ending-run.ll
enum-class.ll
enum-fwd-decl.ll
fi-expr.ll
fi-piece.ll
fission-cu.ll
fission-hash.ll
fission-inline.ll
fission-no-inlining.ll
fission-ranges.ll
float_const.ll
float_const_loclist.ll
formal_parameter.ll
frame-register.ll
generate-odr-hash.ll
ghost-sdnode-dbgvalues.ll
gmlt.test
gnu-public-names-empty.ll
gnu-public-names-gmlt.ll
gnu-public-names-multiple-cus.ll
gnu-public-names-tu.ll
gnu-public-names.ll
header.ll
inline-asm-locs.ll
inline-member-function.ll
inline-namespace.ll
inline-seldag-test.ll
inlined-formal-parameter.ll
inlined-indirect-value.ll
instcombine-instrinsics.ll
isel-cse-line.ll
lexical-block-file-inline.ll
lexical_block.ll
line-info.ll
line.test
linkage-name.ll
lit.local.cfg
live-debug-values.ll
live-debug-variables.ll
live-debug-vars-discard-invalid.mir
live-debug-vars-dse.mir
low-pc-cu.ll
main-file-name.s
memberfnptr.ll
mi-print.ll
misched-dbg-value.ll
missing-file-line.ll
mixed-nodebug-cu.ll
multiple-aranges.ll
multiple-at-const-val.ll
nodebug.ll
nodebug_with_debug_loc.ll
nondefault-subrange-array.ll
nophysreg.ll
noreturn_c11.ll
noreturn_cpp11.ll
noreturn_objc.ll
objc-fwd-decl.ll
objc-property-void.ll
op_deref.ll
parameters.ll
partial-constant.ll
pieces-1.ll
pieces-2.ll
pieces-3.ll
pieces-4.ll
pointer-type-size.ll
pr11300.ll
pr12831.ll
pr13303.ll
pr19307.ll
pr28270.ll
pr34545.ll
processes-relocations.ll
prologue-stack.ll
range_reloc.ll
ref_addr_relocation.ll
reference-argument.ll
rematerialize.ll
rvalue-ref.ll
safestack-byval.ll
sdag-salvage-add.ll
sdag-split-arg.ll
sdagsplit-1.ll
single-dbg_value.ll
single-fi.ll
spill-indirect-nrvo.ll
spill-nontrivial-param.ll
spill-nospill.ll
split-dwarf-cross-unit-reference.ll
split-dwarf-multiple-cu-hash.ll
split-dwarf-omit-empty.ll
split-global.ll
sret.ll
sroasplit-1.ll
sroasplit-2.ll
sroasplit-3.ll
sroasplit-4.ll
sroasplit-5.ll
sroasplit-dbg-declare.ll
stack-args.ll
stack-value-dwarf2.ll
stack-value-dwarf4.ll
stack-value-piece.ll
static_member_array.ll
stmt-list-multiple-compile-units.ll
stmt-list.ll
stringpool.ll
struct-loc.ll
subrange-type.ll
subreg.ll
subregisters.ll
tail-merge.ll
template.ll
this-stack_value.ll
tls.ll
type_units_with_addresses.ll
unattached-global.ll
union-const.ll
union-template.ll
vector.ll
vla.ll
void-typedef.ll
xray-split-dwarf-interaction.ll
zextload.ll
arm-relocs.test
cross-cu-scope.ll
debugify.ll
debuglineinfo-macho.test
debuglineinfo.test
debugmacinfo.test
dwarfdump-64-bit-dwarf.test
dwarfdump-accel.test
dwarfdump-debug-frame-simple.test
dwarfdump-decompression-corrupt.test
dwarfdump-decompression-error.test
dwarfdump-dump-flags.test
dwarfdump-dump-gdbindex.test
dwarfdump-dwp.test
dwarfdump-implicit-const.test
dwarfdump-invalid.test
dwarfdump-macho-relocs.test
dwarfdump-macho-universal.test
dwarfdump-objc.test
dwarfdump-pubnames.test
dwarfdump-ranges.test
dwarfdump-type-units.test
dwarfdump-zlib.test
dwo.ll
invalid-relocations.test
llvm-symbolizer-split-dwarf-empty.test
llvm-symbolizer-zlib.test
llvm-symbolizer.test
macro_link.ll
omit-empty.ll
pr34186.ll
pr34672.ll
skeletoncu.ll
strip-DIGlobalVariable.ll
strip-loop-metadata.ll
typeunit-header.test
unrolled-loop-remainder.ll
Examples
ExecutionEngine
Feature
FileCheck
Instrumentation
Integer
JitListener
LTO
Linker
MC
Object
ObjectYAML
Other
SafepointIRVerifier
SymbolRewriter
TableGen
ThinLTO
Transforms
Unit
Verifier
YAMLParser
tools
.clang-format
CMakeLists.txt
TestRunner.sh
lit.cfg.py
lit.site.cfg.py.in
tools
unittests
utils
.arcconfig
.clang-format
.clang-tidy
.gitattributes
.gitignore
CMakeLists.txt
CODE_OWNERS.TXT
CREDITS.TXT
LICENSE.TXT
LLVMBuild.txt
README.txt
RELEASE_TESTERS.TXT
configure
llvm.spec.in
nuget-buildtasks
nunit-lite
roslyn-binaries
rx
xunit-binaries
how-to-bump-roslyn-binaries.md
ikvm-native
libgc
llvm
m4
man
mcs
mk
mono
msvc
po
runtime
samples
scripts
support
tools
COPYING.LIB
LICENSE
Makefile.am
Makefile.in
NEWS
README.md
acinclude.m4
aclocal.m4
autogen.sh
code_of_conduct.md
compile
config.guess
config.h.in
config.rpath
config.sub
configure.REMOVED.git-id
configure.ac.REMOVED.git-id
depcomp
install-sh
ltmain.sh.REMOVED.git-id
missing
mkinstalldirs
mono-uninstalled.pc.in
test-driver
winconfig.h
108 lines
7.4 KiB
LLVM
108 lines
7.4 KiB
LLVM
![]() |
; RUN: llc -mtriple=x86_64-apple-macosx10.9.0 -filetype=obj -O0 < %s \
|
||
|
; RUN: | llvm-dwarfdump -v -debug-info - | FileCheck %s
|
||
|
; ModuleID = 'aggregate-indirect-arg.cpp'
|
||
|
; extracted from debuginfo-tests/aggregate-indirect-arg.cpp
|
||
|
|
||
|
; v should be a pointer.
|
||
|
; CHECK: .debug_info contents:
|
||
|
; CHECK: DW_TAG_subprogram
|
||
|
; CHECK: DW_AT_specification {{.*}} "_ZN1A3fooE4SVal"
|
||
|
; CHECK-NOT: DW_TAG_subprogram
|
||
|
; CHECK: DW_TAG_formal_parameter
|
||
|
; CHECK: DW_AT_name {{.*}} "this"
|
||
|
; CHECK-NOT: DW_TAG_subprogram
|
||
|
; CHECK: DW_TAG_formal_parameter
|
||
|
; CHECK-NEXT: DW_AT_location {{.*}}(DW_OP_breg4 RSI+0)
|
||
|
; CHECK-NEXT: DW_AT_name {{.*}} "v"
|
||
|
|
||
|
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-apple-macosx10.9.0"
|
||
|
|
||
|
%class.SVal = type { i8*, i32 }
|
||
|
%class.A = type { i8 }
|
||
|
|
||
|
declare void @_Z3barR4SVal(%class.SVal* %v)
|
||
|
declare void @llvm.dbg.declare(metadata, metadata, metadata) #1
|
||
|
declare void @llvm.dbg.value(metadata, metadata, metadata) #1
|
||
|
declare i32 @main()
|
||
|
; Function Attrs: nounwind ssp uwtable
|
||
|
define linkonce_odr void @_ZN1A3fooE4SVal(%class.A* %this, %class.SVal* %v) nounwind ssp uwtable align 2 !dbg !35 {
|
||
|
entry:
|
||
|
%this.addr = alloca %class.A*, align 8
|
||
|
store %class.A* %this, %class.A** %this.addr, align 8
|
||
|
call void @llvm.dbg.declare(metadata %class.A** %this.addr, metadata !59, metadata !DIExpression()), !dbg !61
|
||
|
call void @llvm.dbg.value(metadata %class.SVal* %v, metadata !62, metadata !DIExpression(DW_OP_deref)), !dbg !61
|
||
|
%this1 = load %class.A*, %class.A** %this.addr
|
||
|
call void @_Z3barR4SVal(%class.SVal* %v), !dbg !61
|
||
|
ret void, !dbg !61
|
||
|
}
|
||
|
declare void @_ZN4SValD1Ev(%class.SVal* %this)
|
||
|
declare void @_ZN4SValD2Ev(%class.SVal* %this)
|
||
|
|
||
|
!llvm.dbg.cu = !{!0}
|
||
|
!llvm.module.flags = !{!47, !68}
|
||
|
|
||
|
!0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, producer: "clang version 3.4 ", isOptimized: false, emissionKind: FullDebug, file: !1, enums: !2, retainedTypes: !2, globals: !2, imports: !2)
|
||
|
!1 = !DIFile(filename: "aggregate-indirect-arg.cpp", directory: "")
|
||
|
!2 = !{}
|
||
|
!4 = distinct !DISubprogram(name: "bar", linkageName: "_Z3barR4SVal", line: 19, isLocal: false, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, unit: !0, scopeLine: 19, file: !1, scope: !5, type: !6, variables: !2)
|
||
|
!5 = !DIFile(filename: "aggregate-indirect-arg.cpp", directory: "")
|
||
|
!6 = !DISubroutineType(types: !7)
|
||
|
!7 = !{null, !8}
|
||
|
!8 = !DIDerivedType(tag: DW_TAG_reference_type, baseType: !9)
|
||
|
!9 = !DICompositeType(tag: DW_TAG_class_type, name: "SVal", line: 12, size: 128, align: 64, file: !1, elements: !10)
|
||
|
!10 = !{!11, !14, !16, !21, !23}
|
||
|
!11 = !DIDerivedType(tag: DW_TAG_member, name: "Data", line: 15, size: 64, align: 64, file: !1, scope: !9, baseType: !12)
|
||
|
!12 = !DIDerivedType(tag: DW_TAG_pointer_type, size: 64, align: 64, baseType: !13)
|
||
|
!13 = !DIDerivedType(tag: DW_TAG_const_type, baseType: null)
|
||
|
!14 = !DIDerivedType(tag: DW_TAG_member, name: "Kind", line: 16, size: 32, align: 32, offset: 64, file: !1, scope: !9, baseType: !15)
|
||
|
!15 = !DIBasicType(tag: DW_TAG_base_type, name: "unsigned int", size: 32, align: 32, encoding: DW_ATE_unsigned)
|
||
|
!16 = !DISubprogram(name: "~SVal", line: 14, isLocal: false, isDefinition: false, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, scopeLine: 14, file: !1, scope: !9, type: !17)
|
||
|
!17 = !DISubroutineType(types: !18)
|
||
|
!18 = !{null, !19}
|
||
|
!19 = !DIDerivedType(tag: DW_TAG_pointer_type, size: 64, align: 64, flags: DIFlagArtificial | DIFlagObjectPointer, baseType: !9)
|
||
|
!21 = !DISubprogram(name: "SVal", line: 12, isLocal: false, isDefinition: false, virtualIndex: 6, flags: DIFlagArtificial | DIFlagPrototyped, isOptimized: false, scopeLine: 12, file: !1, scope: !9, type: !17)
|
||
|
!23 = !DISubprogram(name: "SVal", line: 12, isLocal: false, isDefinition: false, virtualIndex: 6, flags: DIFlagArtificial | DIFlagPrototyped, isOptimized: false, scopeLine: 12, file: !1, scope: !9, type: !24)
|
||
|
!24 = !DISubroutineType(types: !25)
|
||
|
!25 = !{null, !19, !26}
|
||
|
!26 = !DIDerivedType(tag: DW_TAG_reference_type, baseType: !27)
|
||
|
!27 = !DIDerivedType(tag: DW_TAG_const_type, baseType: !9)
|
||
|
!29 = distinct !DISubprogram(name: "main", line: 25, isLocal: false, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, unit: !0, scopeLine: 25, file: !1, scope: !5, type: !30, variables: !2)
|
||
|
!30 = !DISubroutineType(types: !31)
|
||
|
!31 = !{!32}
|
||
|
!32 = !DIBasicType(tag: DW_TAG_base_type, name: "int", size: 32, align: 32, encoding: DW_ATE_signed)
|
||
|
!33 = distinct !DISubprogram(name: "~SVal", linkageName: "_ZN4SValD1Ev", line: 14, isLocal: false, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, unit: !0, scopeLine: 14, file: !1, scope: null, type: !17, declaration: !16, variables: !2)
|
||
|
!34 = distinct !DISubprogram(name: "~SVal", linkageName: "_ZN4SValD2Ev", line: 14, isLocal: false, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, unit: !0, scopeLine: 14, file: !1, scope: null, type: !17, declaration: !16, variables: !2)
|
||
|
!35 = distinct !DISubprogram(name: "foo", linkageName: "_ZN1A3fooE4SVal", line: 22, isLocal: false, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, unit: !0, scopeLine: 22, file: !1, scope: null, type: !36, declaration: !41, variables: !2)
|
||
|
!36 = !DISubroutineType(types: !37)
|
||
|
!37 = !{null, !38, !9}
|
||
|
!38 = !DIDerivedType(tag: DW_TAG_pointer_type, size: 64, align: 64, flags: DIFlagArtificial | DIFlagObjectPointer, baseType: !39)
|
||
|
!39 = !DICompositeType(tag: DW_TAG_class_type, name: "A", line: 20, size: 8, align: 8, file: !1, elements: !40)
|
||
|
!40 = !{!41, !43}
|
||
|
!41 = !DISubprogram(name: "foo", linkageName: "_ZN1A3fooE4SVal", line: 22, isLocal: false, isDefinition: false, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, scopeLine: 22, file: !1, scope: !39, type: !36)
|
||
|
!43 = !DISubprogram(name: "A", line: 20, isLocal: false, isDefinition: false, virtualIndex: 6, flags: DIFlagArtificial | DIFlagPrototyped, isOptimized: false, scopeLine: 20, file: !1, scope: !39, type: !44)
|
||
|
!44 = !DISubroutineType(types: !45)
|
||
|
!45 = !{null, !38}
|
||
|
!47 = !{i32 2, !"Dwarf Version", i32 3}
|
||
|
!48 = !DILocalVariable(name: "v", line: 19, arg: 1, scope: !4, file: !5, type: !8)
|
||
|
!49 = !DILocation(line: 19, scope: !4)
|
||
|
!50 = !DILocalVariable(name: "v", line: 26, scope: !29, file: !5, type: !9)
|
||
|
!51 = !DILocation(line: 26, scope: !29)
|
||
|
!52 = !DILocation(line: 27, scope: !29)
|
||
|
!53 = !DILocation(line: 28, scope: !29)
|
||
|
!54 = !DILocalVariable(name: "a", line: 29, scope: !29, file: !5, type: !39)
|
||
|
!55 = !DILocation(line: 29, scope: !29)
|
||
|
!56 = !DILocation(line: 30, scope: !29)
|
||
|
!57 = !DILocation(line: 31, scope: !29)
|
||
|
!58 = !DILocation(line: 32, scope: !29)
|
||
|
!59 = !DILocalVariable(name: "this", line: 22, arg: 1, flags: DIFlagArtificial | DIFlagObjectPointer, scope: !35, file: !5, type: !60)
|
||
|
!60 = !DIDerivedType(tag: DW_TAG_pointer_type, size: 64, align: 64, baseType: !39)
|
||
|
!61 = !DILocation(line: 22, scope: !35)
|
||
|
!62 = !DILocalVariable(name: "v", line: 22, arg: 2, scope: !35, file: !5, type: !9)
|
||
|
!63 = !DILocalVariable(name: "this", line: 14, arg: 1, flags: DIFlagArtificial | DIFlagObjectPointer, scope: !33, file: !5, type: !64)
|
||
|
!64 = !DIDerivedType(tag: DW_TAG_pointer_type, size: 64, align: 64, baseType: !9)
|
||
|
!65 = !DILocation(line: 14, scope: !33)
|
||
|
!66 = !DILocalVariable(name: "this", line: 14, arg: 1, flags: DIFlagArtificial | DIFlagObjectPointer, scope: !34, file: !5, type: !64)
|
||
|
!67 = !DILocation(line: 14, scope: !34)
|
||
|
!68 = !{i32 1, !"Debug Info Version", i32 3}
|