diff options
author | Adrian Prantl <aprantl@apple.com> | 2016-11-03 19:42:02 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2016-11-03 19:42:02 +0000 |
commit | dbfda63695272c2d12a6a61b18b52d3961d8e1a8 (patch) | |
tree | 84e60fd946f3806394c80e3b796986b6a5bf6f13 /llvm/test/Bitcode | |
parent | 8a569174928c79af07459fb92751b36624baedde (diff) | |
download | bcm5719-llvm-dbfda63695272c2d12a6a61b18b52d3961d8e1a8.tar.gz bcm5719-llvm-dbfda63695272c2d12a6a61b18b52d3961d8e1a8.zip |
Add DWARF debug info support for C++11 inline namespaces.
This implements the DWARF 5 DW_AT_export_symbols feature:
http://dwarfstd.org/ShowIssue.php?issue=141212.1
<rdar://problem/18616046>
llvm-svn: 285959
Diffstat (limited to 'llvm/test/Bitcode')
-rw-r--r-- | llvm/test/Bitcode/DINamespace.ll | 23 | ||||
-rw-r--r-- | llvm/test/Bitcode/DINamespace.ll.bc | bin | 0 -> 1152 bytes |
2 files changed, 23 insertions, 0 deletions
diff --git a/llvm/test/Bitcode/DINamespace.ll b/llvm/test/Bitcode/DINamespace.ll new file mode 100644 index 00000000000..2807cb02d3d --- /dev/null +++ b/llvm/test/Bitcode/DINamespace.ll @@ -0,0 +1,23 @@ +; RUN: llvm-dis %s.bc -o - | FileCheck %s +target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128" +target triple = "x86_64-apple-macosx10.12.0" + +@_ZN1N1iE = global i32 0, align 4, !dbg !0 + +!llvm.dbg.cu = !{!4} +!llvm.module.flags = !{!7, !8, !9} +!llvm.ident = !{!10} + +!0 = distinct !DIGlobalVariable(name: "i", linkageName: "_ZN1N1iE", scope: !1, file: !2, line: 2, type: !3, isLocal: false, isDefinition: true) +; Test bitcode upgrade for DINamespace without an exportSymbols field. +; CHECK: !DINamespace(name: "N", scope: null, file: !{{[0-9]+}}, line: 1) +!1 = !DINamespace(name: "N", scope: null, file: !2, line: 1) +!2 = !DIFile(filename: "dinamespace.cpp", directory: "/") +!3 = !DIBasicType(name: "int", size: 32, align: 32, encoding: DW_ATE_signed) +!4 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !2, producer: "clang version 4.0.0 (trunk 283228) (llvm/trunk 283225)", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !5, globals: !6) +!5 = !{} +!6 = !{!0} +!7 = !{i32 2, !"Dwarf Version", i32 4} +!8 = !{i32 2, !"Debug Info Version", i32 3} +!9 = !{i32 1, !"PIC Level", i32 2} +!10 = !{!"clang version 4.0.0 (trunk 283228) (llvm/trunk 283225)"} diff --git a/llvm/test/Bitcode/DINamespace.ll.bc b/llvm/test/Bitcode/DINamespace.ll.bc Binary files differnew file mode 100644 index 00000000000..90ccb8c783a --- /dev/null +++ b/llvm/test/Bitcode/DINamespace.ll.bc |