You've already forked linux-packaging-mono
acceptance-tests
data
debian
docs
external
Newtonsoft.Json
api-doc-tools
api-snapshot
aspnetwebstack
bdwgc
binary-reference-assemblies
bockbuild
boringssl
cecil
cecil-legacy
corefx
corert
helix-binaries
ikdasm
ikvm
illinker-test-assets
linker
llvm-project
clang
clang-tools-extra
compiler-rt
libcxx
libcxxabi
libunwind
lld
lldb
llvm
bindings
cmake
docs
examples
include
lib
projects
resources
runtimes
scripts
test
Analysis
Assembler
Bindings
Bitcode
BugPoint
CodeGen
DebugInfo
AArch64
AMDGPU
ARM
COFF
Generic
2009-10-16-Phi.ll
2009-11-03-InsertExtractValue.ll
2009-11-05-DeadGlobalVariable.ll
2009-11-06-NamelessGlobalVariable.ll
2009-11-10-CurrentFn.ll
2010-01-05-DbgScope.ll
2010-03-12-llc-crash.ll
2010-03-19-DbgDeclare.ll
2010-03-24-MemberFn.ll
2010-04-06-NestedFnDbgInfo.ll
2010-04-19-FramePtr.ll
2010-05-03-DisableFramePtr.ll
2010-05-03-OriginDIE.ll
2010-05-10-MultipleCU.ll
2010-06-29-InlinedFnLocalVar.ll
2010-10-01-crash.ll
PR20038.ll
accel-table-hash-collisions.ll
array.ll
block-asan.ll
bug_null_debuginfo.ll
constant-pointers.ll
constant-sdnodes-have-dbg-location.ll
constantfp-sdnodes-have-dbg-location.ll
containing-type-extension.ll
cross-cu-inlining.ll
cross-cu-linkonce-distinct.ll
cross-cu-linkonce.ll
cu-range-hole.ll
cu-ranges.ll
dbg-at-specficiation.ll
dead-argument-order.ll
debug-info-always-inline.ll
debug-info-qualifiers.ll
debuginfofinder-forward-declaration.ll
debuginfofinder-inlined-cu.ll
debuginfofinder-multiple-cu.ll
def-line.ll
discriminator.ll
dwarf-public-names.ll
empty.ll
enum-types.ll
enum.ll
global-sra-array.ll
global-sra-single-member.ll
global-sra-struct.ll
global.ll
gmlt.test
gmlt_profiling.ll
gvn.ll
imported-name-inlined.ll
incorrect-variable-debugloc.ll
incorrect-variable-debugloc1.ll
indvar-discriminator.ll
inheritance.ll
inline-debug-info-multiret.ll
inline-debug-info.ll
inline-debug-loc.ll
inline-no-debug-info.ll
inline-scopes.ll
inlined-arguments.ll
inlined-vars.ll
instcombine-phi.ll
invalid.ll
licm-hoist-debug-loc.ll
linkage-name-abstract.ll
lit.local.cfg
location-verifier.ll
lto-comp-dir.ll
mainsubprogram.ll
member-order.ll
member-pointers.ll
missing-abstract-variable.ll
multiline.ll
namespace.ll
namespace_function_definition.ll
namespace_inline_function_definition.ll
noscopes.ll
piece-verifier.ll
ptrsize.ll
recursive_inlining.ll
restrict.ll
simplifycfg_sink_last_inst.ll
skeletoncu.ll
sroa-larger.ll
sroa-samesize.ll
store-tail-merge.ll
sugared-constants.ll
sunk-compare.ll
template-recursive-void.ll
thrownTypes.ll
tu-composite.ll
tu-member-pointer.ll
two-cus-from-same-file.ll
typedef.ll
unconditional-branch.ll
varargs.ll
version.ll
virtual-index.ll
Inputs
Lanai
MIR
MSP430
Mips
PDB
PowerPC
Sparc
SystemZ
WebAssembly
X86
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
openmp
polly
nuget-buildtasks
nunit-lite
roslyn-binaries
rx
xunit-binaries
how-to-bump-roslyn-binaries.md
ikvm-native
llvm
m4
man
mcs
mk
mono
msvc
netcore
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
140 lines
6.8 KiB
LLVM
140 lines
6.8 KiB
LLVM
![]() |
; REQUIRES: object-emission
|
||
|
|
||
|
; RUN: %llc_dwarf -debugger-tune=gdb -filetype=obj -o %t.o < %s
|
||
|
; RUN: llvm-dwarfdump -debug-pubnames %t.o | FileCheck %s
|
||
|
; ModuleID = 'dwarf-public-names.cpp'
|
||
|
;
|
||
|
; Generated from:
|
||
|
;
|
||
|
; struct C {
|
||
|
; void member_function();
|
||
|
; static int static_member_function();
|
||
|
; static int static_member_variable;
|
||
|
; };
|
||
|
;
|
||
|
; int C::static_member_variable = 0;
|
||
|
;
|
||
|
; void C::member_function() {
|
||
|
; static_member_variable = 0;
|
||
|
; }
|
||
|
;
|
||
|
; int C::static_member_function() {
|
||
|
; return static_member_variable;
|
||
|
; }
|
||
|
;
|
||
|
; C global_variable;
|
||
|
;
|
||
|
; int global_function() {
|
||
|
; return -1;
|
||
|
; }
|
||
|
;
|
||
|
; namespace ns {
|
||
|
; void global_namespace_function() {
|
||
|
; global_variable.member_function();
|
||
|
; }
|
||
|
; int global_namespace_variable = 1;
|
||
|
; }
|
||
|
|
||
|
; Skip the output to the header of the pubnames section.
|
||
|
; CHECK: debug_pubnames
|
||
|
; CHECK: version = 0x0002
|
||
|
|
||
|
; Check for each name in the output.
|
||
|
; CHECK-DAG: "ns"
|
||
|
; CHECK-DAG: "C::static_member_function"
|
||
|
; CHECK-DAG: "global_variable"
|
||
|
; CHECK-DAG: "ns::global_namespace_variable"
|
||
|
; CHECK-DAG: "ns::global_namespace_function"
|
||
|
; CHECK-DAG: "global_function"
|
||
|
; CHECK-DAG: "C::static_member_variable"
|
||
|
; CHECK-DAG: "C::member_function"
|
||
|
|
||
|
source_filename = "test/DebugInfo/Generic/dwarf-public-names.ll"
|
||
|
|
||
|
%struct.C = type { i8 }
|
||
|
|
||
|
@_ZN1C22static_member_variableE = global i32 0, align 4, !dbg !0
|
||
|
@global_variable = global %struct.C zeroinitializer, align 1, !dbg !15
|
||
|
@_ZN2ns25global_namespace_variableE = global i32 1, align 4, !dbg !17
|
||
|
|
||
|
; Function Attrs: nounwind uwtable
|
||
|
define void @_ZN1C15member_functionEv(%struct.C* %this) #0 align 2 !dbg !23 {
|
||
|
entry:
|
||
|
%this.addr = alloca %struct.C*, align 8
|
||
|
store %struct.C* %this, %struct.C** %this.addr, align 8
|
||
|
call void @llvm.dbg.declare(metadata %struct.C** %this.addr, metadata !24, metadata !26), !dbg !27
|
||
|
%this1 = load %struct.C*, %struct.C** %this.addr
|
||
|
store i32 0, i32* @_ZN1C22static_member_variableE, align 4, !dbg !28
|
||
|
ret void, !dbg !29
|
||
|
}
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
declare void @llvm.dbg.declare(metadata, metadata, metadata) #1
|
||
|
|
||
|
; Function Attrs: nounwind uwtable
|
||
|
define i32 @_ZN1C22static_member_functionEv() #0 align 2 !dbg !30 {
|
||
|
entry:
|
||
|
%0 = load i32, i32* @_ZN1C22static_member_variableE, align 4, !dbg !31
|
||
|
ret i32 %0, !dbg !31
|
||
|
}
|
||
|
|
||
|
; Function Attrs: nounwind uwtable
|
||
|
define i32 @_Z15global_functionv() #0 !dbg !32 {
|
||
|
entry:
|
||
|
ret i32 -1, !dbg !33
|
||
|
}
|
||
|
|
||
|
; Function Attrs: nounwind uwtable
|
||
|
define void @_ZN2ns25global_namespace_functionEv() #0 !dbg !34 {
|
||
|
entry:
|
||
|
call void @_ZN1C15member_functionEv(%struct.C* @global_variable), !dbg !37
|
||
|
ret void, !dbg !38
|
||
|
}
|
||
|
|
||
|
attributes #0 = { nounwind uwtable }
|
||
|
attributes #1 = { nounwind readnone }
|
||
|
|
||
|
!llvm.dbg.cu = !{!20}
|
||
|
!llvm.module.flags = !{!22}
|
||
|
|
||
|
!0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())
|
||
|
!1 = !DIGlobalVariable(name: "static_member_variable", linkageName: "_ZN1C22static_member_variableE", scope: !2, file: !3, line: 7, type: !6, isLocal: false, isDefinition: true, declaration: !5)
|
||
|
!2 = !DICompositeType(tag: DW_TAG_structure_type, name: "C", file: !3, line: 1, size: 8, align: 8, elements: !4)
|
||
|
!3 = !DIFile(filename: "dwarf-public-names.cpp", directory: "/usr2/kparzysz/s.hex/t")
|
||
|
!4 = !{!5, !7, !12}
|
||
|
!5 = !DIDerivedType(tag: DW_TAG_member, name: "static_member_variable", scope: !2, file: !3, line: 4, baseType: !6, flags: DIFlagStaticMember)
|
||
|
!6 = !DIBasicType(name: "int", size: 32, align: 32, encoding: DW_ATE_signed)
|
||
|
!7 = !DISubprogram(name: "member_function", linkageName: "_ZN1C15member_functionEv", scope: !2, file: !3, line: 2, type: !8, isLocal: false, isDefinition: false, scopeLine: 2, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, variables: !11)
|
||
|
!8 = !DISubroutineType(types: !9)
|
||
|
!9 = !{null, !10}
|
||
|
!10 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !2, size: 64, align: 64, flags: DIFlagArtificial | DIFlagObjectPointer)
|
||
|
!11 = !{}
|
||
|
!12 = !DISubprogram(name: "static_member_function", linkageName: "_ZN1C22static_member_functionEv", scope: !2, file: !3, line: 3, type: !13, isLocal: false, isDefinition: false, scopeLine: 3, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, variables: !11)
|
||
|
!13 = !DISubroutineType(types: !14)
|
||
|
!14 = !{!6}
|
||
|
!15 = !DIGlobalVariableExpression(var: !16, expr: !DIExpression())
|
||
|
!16 = !DIGlobalVariable(name: "global_variable", scope: null, file: !3, line: 17, type: !2, isLocal: false, isDefinition: true) ; previously: invalid DW_TAG_base_type
|
||
|
!17 = !DIGlobalVariableExpression(var: !18, expr: !DIExpression())
|
||
|
!18 = !DIGlobalVariable(name: "global_namespace_variable", linkageName: "_ZN2ns25global_namespace_variableE", scope: !19, file: !3, line: 27, type: !6, isLocal: false, isDefinition: true)
|
||
|
!19 = !DINamespace(name: "ns", scope: null)
|
||
|
!20 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !3, producer: "clang version 3.3 (http://llvm.org/git/clang.git a09cd8103a6a719cb2628cdf0c91682250a17bd2) (http://llvm.org/git/llvm.git 47d03cec0afca0c01ae42b82916d1d731716cd20)", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !11, retainedTypes: !11, globals: !21, imports: !11) ; previously: invalid DW_TAG_base_type
|
||
|
!21 = !{!0, !15, !17}
|
||
|
!22 = !{i32 1, !"Debug Info Version", i32 3}
|
||
|
!23 = distinct !DISubprogram(name: "member_function", linkageName: "_ZN1C15member_functionEv", scope: null, file: !3, line: 9, type: !8, isLocal: false, isDefinition: true, scopeLine: 9, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, unit: !20, declaration: !7, variables: !11)
|
||
|
!24 = !DILocalVariable(name: "this", arg: 1, scope: !23, file: !3, line: 9, type: !25, flags: DIFlagArtificial | DIFlagObjectPointer)
|
||
|
!25 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !2, size: 64, align: 64)
|
||
|
!26 = !DIExpression()
|
||
|
!27 = !DILocation(line: 9, scope: !23)
|
||
|
!28 = !DILocation(line: 10, scope: !23)
|
||
|
!29 = !DILocation(line: 11, scope: !23)
|
||
|
!30 = distinct !DISubprogram(name: "static_member_function", linkageName: "_ZN1C22static_member_functionEv", scope: null, file: !3, line: 13, type: !13, isLocal: false, isDefinition: true, scopeLine: 13, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, unit: !20, declaration: !12, variables: !11)
|
||
|
!31 = !DILocation(line: 14, scope: !30)
|
||
|
!32 = distinct !DISubprogram(name: "global_function", linkageName: "_Z15global_functionv", scope: !3, file: !3, line: 19, type: !13, isLocal: false, isDefinition: true, scopeLine: 19, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, unit: !20, variables: !11)
|
||
|
!33 = !DILocation(line: 20, scope: !32)
|
||
|
!34 = distinct !DISubprogram(name: "global_namespace_function", linkageName: "_ZN2ns25global_namespace_functionEv", scope: !19, file: !3, line: 24, type: !35, isLocal: false, isDefinition: true, scopeLine: 24, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, unit: !20, variables: !11)
|
||
|
!35 = !DISubroutineType(types: !36)
|
||
|
!36 = !{null}
|
||
|
!37 = !DILocation(line: 25, scope: !34)
|
||
|
!38 = !DILocation(line: 26, scope: !34)
|
||
|
|