[llvm] r278948 - Move tests to the appropriate subdirectory.
Adrian Prantl via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 17 09:55:56 PDT 2016
Author: adrian
Date: Wed Aug 17 11:55:56 2016
New Revision: 278948
URL: http://llvm.org/viewvc/llvm-project?rev=278948&view=rev
Log:
Move tests to the appropriate subdirectory.
Added:
llvm/trunk/test/DebugInfo/X86/noreturn_c11.ll
- copied, changed from r278940, llvm/trunk/test/DebugInfo/noreturn_c11.ll
llvm/trunk/test/DebugInfo/X86/noreturn_cpp11.ll
- copied, changed from r278940, llvm/trunk/test/DebugInfo/noreturn_cpp11.ll
llvm/trunk/test/DebugInfo/X86/noreturn_objc.ll
- copied, changed from r278940, llvm/trunk/test/DebugInfo/noreturn_objc.ll
Removed:
llvm/trunk/test/DebugInfo/noreturn_c11.ll
llvm/trunk/test/DebugInfo/noreturn_cpp11.ll
llvm/trunk/test/DebugInfo/noreturn_objc.ll
Copied: llvm/trunk/test/DebugInfo/X86/noreturn_c11.ll (from r278940, llvm/trunk/test/DebugInfo/noreturn_c11.ll)
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/DebugInfo/X86/noreturn_c11.ll?p2=llvm/trunk/test/DebugInfo/X86/noreturn_c11.ll&p1=llvm/trunk/test/DebugInfo/noreturn_c11.ll&r1=278940&r2=278948&rev=278948&view=diff
==============================================================================
(empty)
Copied: llvm/trunk/test/DebugInfo/X86/noreturn_cpp11.ll (from r278940, llvm/trunk/test/DebugInfo/noreturn_cpp11.ll)
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/DebugInfo/X86/noreturn_cpp11.ll?p2=llvm/trunk/test/DebugInfo/X86/noreturn_cpp11.ll&p1=llvm/trunk/test/DebugInfo/noreturn_cpp11.ll&r1=278940&r2=278948&rev=278948&view=diff
==============================================================================
(empty)
Copied: llvm/trunk/test/DebugInfo/X86/noreturn_objc.ll (from r278940, llvm/trunk/test/DebugInfo/noreturn_objc.ll)
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/DebugInfo/X86/noreturn_objc.ll?p2=llvm/trunk/test/DebugInfo/X86/noreturn_objc.ll&p1=llvm/trunk/test/DebugInfo/noreturn_objc.ll&r1=278940&r2=278948&rev=278948&view=diff
==============================================================================
(empty)
Removed: llvm/trunk/test/DebugInfo/noreturn_c11.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/DebugInfo/noreturn_c11.ll?rev=278947&view=auto
==============================================================================
--- llvm/trunk/test/DebugInfo/noreturn_c11.ll (original)
+++ llvm/trunk/test/DebugInfo/noreturn_c11.ll (removed)
@@ -1,50 +0,0 @@
-; RUN: %llc_dwarf -filetype=obj < %s | llvm-dwarfdump -debug-dump=info - | FileCheck %s
-; REQUIRES: object-emission
-
-; Generated by clang -S -c -std=c++11 --emit-llvm -g from the following C11 source:
-; _Noreturn void f() {
-; throw 1;
-; }
-
-; CHECK: DW_TAG_subprogram
-; CHECK-NOT: DW_TAG
-; CHECK: DW_AT_name{{.*}}"f"
-; CHECK-NOT: DW_TAG
-; CHECK: DW_AT_noreturn
-
-; ModuleID = './test.c'
-source_filename = "./test.c"
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
-target triple = "x86_64-unknown-linux-gnu"
-
-; Function Attrs: noreturn
-define void @f() #0 !dbg !6 {
-entry:
- call void @exit(i32 0) #2, !dbg !10
- unreachable, !dbg !10
-
-return: ; No predecessors!
- ret void, !dbg !11
-}
-
-; Function Attrs: noreturn
-declare void @exit(i32) #1
-
-attributes #0 = { noreturn }
-
-!llvm.dbg.cu = !{!0}
-!llvm.module.flags = !{!3, !4}
-!llvm.ident = !{!5}
-
-!0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang version 4.0.0 (http://llvm.org/git/clang.git 08946d46f2add8cb241fdc09fc3731dd9dc5ecb5) (http://llvm.org/git/llvm.git d048aeecd34b8c336d1fd44e36c15b0b11c2ea4d)", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !2)
-!1 = !DIFile(filename: "test.c", directory: "/home/del/test")
-!2 = !{}
-!3 = !{i32 2, !"Dwarf Version", i32 4}
-!4 = !{i32 2, !"Debug Info Version", i32 3}
-!5 = !{!"clang version 4.0.0 (http://llvm.org/git/clang.git 08946d46f2add8cb241fdc09fc3731dd9dc5ecb5) (http://llvm.org/git/llvm.git d048aeecd34b8c336d1fd44e36c15b0b11c2ea4d)"}
-!6 = distinct !DISubprogram(name: "f", scope: !7, file: !7, line: 3, type: !8, isLocal: false, isDefinition: true, scopeLine: 4, flags: DIFlagNoReturn, isOptimized: false, unit: !0, variables: !2)
-!7 = !DIFile(filename: "./test.c", directory: "/home/del/test")
-!8 = !DISubroutineType(types: !9)
-!9 = !{null}
-!10 = !DILocation(line: 5, column: 3, scope: !6)
-!11 = !DILocation(line: 6, column: 1, scope: !6)
Removed: llvm/trunk/test/DebugInfo/noreturn_cpp11.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/DebugInfo/noreturn_cpp11.ll?rev=278947&view=auto
==============================================================================
--- llvm/trunk/test/DebugInfo/noreturn_cpp11.ll (original)
+++ llvm/trunk/test/DebugInfo/noreturn_cpp11.ll (removed)
@@ -1,57 +0,0 @@
-; RUN: %llc_dwarf -filetype=obj < %s | llvm-dwarfdump -debug-dump=info - | FileCheck %s
-; REQUIRES: object-emission
-
-; Generated by clang++ -S -c -std=c++11 --emit-llvm -g from the following C++11 source:
-; [[ noreturn ]] void f() {
-; throw 1;
-; }
-
-; CHECK: DW_TAG_subprogram
-; CHECK-NOT: DW_TAG
-; CHECK: DW_AT_name{{.*}}"f"
-; CHECK-NOT: DW_TAG
-; CHECK: DW_AT_noreturn
-
-; ModuleID = 'test.cpp'
-source_filename = "test.cpp"
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
-target triple = "x86_64-unknown-linux-gnu"
-
- at _ZTIi = external constant i8*
-
-; Function Attrs: noreturn
-define void @_Z1fv() #0 !dbg !6 {
-entry:
- %exception = call i8* @__cxa_allocate_exception(i64 4) #1, !dbg !9
- %0 = bitcast i8* %exception to i32*, !dbg !9
- store i32 1, i32* %0, align 16, !dbg !9
- call void @__cxa_throw(i8* %exception, i8* bitcast (i8** @_ZTIi to i8*), i8* null) #2, !dbg !10
- unreachable, !dbg !9
-
-return: ; No predecessors!
- ret void, !dbg !12
-}
-
-declare i8* @__cxa_allocate_exception(i64)
-
-declare void @__cxa_throw(i8*, i8*, i8*)
-
-attributes #0 = { noreturn }
-
-!llvm.dbg.cu = !{!0}
-!llvm.module.flags = !{!3, !4}
-!llvm.ident = !{!5}
-
-!0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !1, producer: "clang version 4.0.0 (http://llvm.org/git/clang.git 08946d46f2add8cb241fdc09fc3731dd9dc5ecb5) (http://llvm.org/git/llvm.git d048aeecd34b8c336d1fd44e36c15b0b11c2ea4d)", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !2)
-!1 = !DIFile(filename: "test.cpp", directory: "/home/del/test")
-!2 = !{}
-!3 = !{i32 2, !"Dwarf Version", i32 4}
-!4 = !{i32 2, !"Debug Info Version", i32 3}
-!5 = !{!"clang version 4.0.0 (http://llvm.org/git/clang.git 08946d46f2add8cb241fdc09fc3731dd9dc5ecb5) (http://llvm.org/git/llvm.git d048aeecd34b8c336d1fd44e36c15b0b11c2ea4d)"}
-!6 = distinct !DISubprogram(name: "f", linkageName: "_Z1fv", scope: !1, file: !1, line: 1, type: !7, isLocal: false, isDefinition: true, scopeLine: 1, flags: DIFlagPrototyped | DIFlagNoReturn, isOptimized: false, unit: !0, variables: !2)
-!7 = !DISubroutineType(types: !8)
-!8 = !{null}
-!9 = !DILocation(line: 2, column: 5, scope: !6)
-!10 = !DILocation(line: 2, column: 5, scope: !11)
-!11 = !DILexicalBlockFile(scope: !6, file: !1, discriminator: 1)
-!12 = !DILocation(line: 3, column: 1, scope: !6)
Removed: llvm/trunk/test/DebugInfo/noreturn_objc.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/DebugInfo/noreturn_objc.ll?rev=278947&view=auto
==============================================================================
--- llvm/trunk/test/DebugInfo/noreturn_objc.ll (original)
+++ llvm/trunk/test/DebugInfo/noreturn_objc.ll (removed)
@@ -1,52 +0,0 @@
-; RUN: %llc_dwarf -filetype=obj < %s | llvm-dwarfdump -debug-dump=info - | FileCheck %s
-; REQUIRES: object-emission
-
-; Generated by clang++ -S -c --emit-llvm -g from the following ObjC source:
-; #include <stdlib.h>
-; __attribute__ ((noreturn)) void f()
-; {
-; exit(0);
-; }
-
-; CHECK: DW_TAG_subprogram
-; CHECK-NOT: DW_TAG
-; CHECK: DW_AT_name{{.*}}"f"
-; CHECK-NOT: DW_TAG
-; CHECK: DW_AT_noreturn
-
-; ModuleID = './test.m'
-source_filename = "./test.m"
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
-target triple = "x86_64-unknown-linux-gnu"
-
-; Function Attrs: noreturn
-define void @f() #0 !dbg !6 {
-entry:
- call void @exit(i32 0) #2, !dbg !10
- unreachable, !dbg !10
-
-return: ; No predecessors!
- ret void, !dbg !11
-}
-
-; Function Attrs: noreturn
-declare void @exit(i32) #1
-
-attributes #0 = { noreturn }
-
-!llvm.dbg.cu = !{!0}
-!llvm.module.flags = !{!3, !4}
-!llvm.ident = !{!5}
-
-!0 = distinct !DICompileUnit(language: DW_LANG_ObjC, file: !1, producer: "clang version 4.0.0 (http://llvm.org/git/clang.git 08946d46f2add8cb241fdc09fc3731dd9dc5ecb5) (http://llvm.org/git/llvm.git d048aeecd34b8c336d1fd44e36c15b0b11c2ea4d)", isOptimized: false, runtimeVersion: 1, emissionKind: FullDebug, enums: !2)
-!1 = !DIFile(filename: "test.m", directory: "/home/del/test/noreturn/objc")
-!2 = !{}
-!3 = !{i32 2, !"Dwarf Version", i32 4}
-!4 = !{i32 2, !"Debug Info Version", i32 3}
-!5 = !{!"clang version 4.0.0 (http://llvm.org/git/clang.git 08946d46f2add8cb241fdc09fc3731dd9dc5ecb5) (http://llvm.org/git/llvm.git d048aeecd34b8c336d1fd44e36c15b0b11c2ea4d)"}
-!6 = distinct !DISubprogram(name: "f", scope: !7, file: !7, line: 2, type: !8, isLocal: false, isDefinition: true, scopeLine: 3, flags: DIFlagNoReturn, isOptimized: false, unit: !0, variables: !2)
-!7 = !DIFile(filename: "./test.m", directory: "/home/del/test/noreturn/objc")
-!8 = !DISubroutineType(types: !9)
-!9 = !{null}
-!10 = !DILocation(line: 4, column: 3, scope: !6)
-!11 = !DILocation(line: 5, column: 1, scope: !6)
More information about the llvm-commits
mailing list