diff options
| author | Mehdi Amini <mehdi.amini@apple.com> | 2015-09-16 05:34:32 +0000 |
|---|---|---|
| committer | Mehdi Amini <mehdi.amini@apple.com> | 2015-09-16 05:34:32 +0000 |
| commit | d178f4fc895b432008fcd8a0a49a13d951fecfe4 (patch) | |
| tree | 19aeac350e85872308d275d4fe8cdce821771d5d /llvm/test/DebugInfo/Generic/2010-05-10-MultipleCU.ll | |
| parent | 8e468d6388ad3a91c2a835529729515c19f74186 (diff) | |
| download | bcm5719-llvm-d178f4fc895b432008fcd8a0a49a13d951fecfe4.tar.gz bcm5719-llvm-d178f4fc895b432008fcd8a0a49a13d951fecfe4.zip | |
Make the default triple optional by allowing an empty string
When building LLVM as a (potentially dynamic) library that can be linked against
by multiple compilers, the default triple is not really meaningful.
We allow to explicitely set it to an empty string when configuring LLVM.
In this case, said "target independent" tests in the test suite that are using
the default triple are disabled by matching the newly available feature
"default_triple".
Reviewers: probinson, echristo
Differential Revision: http://reviews.llvm.org/D12660
From: Mehdi Amini <mehdi.amini@apple.com>
llvm-svn: 247775
Diffstat (limited to 'llvm/test/DebugInfo/Generic/2010-05-10-MultipleCU.ll')
| -rw-r--r-- | llvm/test/DebugInfo/Generic/2010-05-10-MultipleCU.ll | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/llvm/test/DebugInfo/Generic/2010-05-10-MultipleCU.ll b/llvm/test/DebugInfo/Generic/2010-05-10-MultipleCU.ll new file mode 100644 index 00000000000..92277a97d21 --- /dev/null +++ b/llvm/test/DebugInfo/Generic/2010-05-10-MultipleCU.ll @@ -0,0 +1,44 @@ +; REQUIRES: object-emission + +; RUN: %llc_dwarf -O0 -filetype=obj < %s | llvm-dwarfdump -debug-dump=info - | FileCheck %s + +; Check that two compile units are generated + +; CHECK: Compile Unit: +; CHECK: Compile Unit: + +define i32 @foo() nounwind readnone ssp { +return: + ret i32 42, !dbg !0 +} + +define i32 @bar() nounwind readnone ssp { +return: + ret i32 21, !dbg !8 +} + +!llvm.dbg.cu = !{!4, !12} +!llvm.module.flags = !{!21} +!16 = !{!2} +!17 = !{!10} + +!0 = !DILocation(line: 3, scope: !1) +!1 = distinct !DILexicalBlock(line: 2, column: 0, file: !18, scope: !2) +!2 = distinct !DISubprogram(name: "foo", linkageName: "foo", line: 2, isLocal: false, isDefinition: true, virtualIndex: 6, isOptimized: false, file: !18, scope: !3, type: !5, function: i32 ()* @foo) +!3 = !DIFile(filename: "a.c", directory: "/tmp/") +!4 = distinct !DICompileUnit(language: DW_LANG_C89, producer: "4.2.1 (Based on Apple Inc. build 5658) (LLVM build)", isOptimized: false, emissionKind: 0, file: !18, enums: !19, retainedTypes: !19, subprograms: !16) +!5 = !DISubroutineType(types: !6) +!6 = !{!7} +!7 = !DIBasicType(tag: DW_TAG_base_type, name: "int", size: 32, align: 32, encoding: DW_ATE_signed) +!8 = !DILocation(line: 3, scope: !9) +!9 = distinct !DILexicalBlock(line: 2, column: 0, file: !20, scope: !10) +!10 = distinct !DISubprogram(name: "bar", linkageName: "bar", line: 2, isLocal: false, isDefinition: true, virtualIndex: 6, isOptimized: false, file: !20, scope: !11, type: !13, function: i32 ()* @bar) +!11 = !DIFile(filename: "b.c", directory: "/tmp/") +!12 = distinct !DICompileUnit(language: DW_LANG_C89, producer: "4.2.1 (Based on Apple Inc. build 5658) (LLVM build)", isOptimized: false, emissionKind: 0, file: !20, enums: !19, retainedTypes: !19, subprograms: !17) +!13 = !DISubroutineType(types: !14) +!14 = !{!15} +!15 = !DIBasicType(tag: DW_TAG_base_type, name: "int", size: 32, align: 32, encoding: DW_ATE_signed) +!18 = !DIFile(filename: "a.c", directory: "/tmp/") +!19 = !{} +!20 = !DIFile(filename: "b.c", directory: "/tmp/") +!21 = !{i32 1, !"Debug Info Version", i32 3} |

