mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
e659840bcd
The %T lit expansion expands to a common directory shared between all the tests in the same directory, which is unexpected and unintuitive, and more importantly, it's been a source of subtle race conditions and flaky tests. In https://reviews.llvm.org/D35396, it was agreed that it would be best to simply ban %T and only keep %t, which is unique to each test. When a test needs a temporary directory, it can just create one using mkdir %t. This patch removes %T in llvm. Differential Revision: https://reviews.llvm.org/D36495 llvm-svn: 310953
29 lines
1.1 KiB
LLVM
29 lines
1.1 KiB
LLVM
; RUN: rm -rf %t && mkdir -p %t
|
|
; RUN: echo '!10 = !{!"%/t/aaa.gcno", !"%/t/bbb.gcda", !0}' > %t/1
|
|
; RUN: cat %s %t/1 > %t/2
|
|
; RUN: opt -insert-gcov-profiling -S -o %t/3 < %t/2
|
|
; RUN: grep _Z3foov %t/aaa.gcno
|
|
; RUN: grep bbb.gcda %t/3
|
|
; RUN: rm %t/aaa.gcno
|
|
|
|
define void @_Z3foov() !dbg !5 {
|
|
entry:
|
|
ret void, !dbg !8
|
|
}
|
|
|
|
!llvm.dbg.cu = !{!0}
|
|
!llvm.module.flags = !{!9}
|
|
!llvm.gcov = !{!10}
|
|
|
|
!0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, producer: "clang version 3.3 (trunk 177323)", isOptimized: false, emissionKind: FullDebug, file: !2, enums: !3, retainedTypes: !3, globals: !3, imports: !3)
|
|
!1 = !DIFile(filename: "hello.cc", directory: "/home/nlewycky")
|
|
!2 = !DIFile(filename: "hello.cc", directory: "/home/nlewycky")
|
|
!3 = !{}
|
|
!5 = distinct !DISubprogram(name: "foo", linkageName: "_Z3foov", line: 1, isLocal: false, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, unit: !0, scopeLine: 1, file: !1, scope: !1, type: !6, variables: !3)
|
|
!6 = !DISubroutineType(types: !7)
|
|
!7 = !{null}
|
|
!8 = !DILocation(line: 1, scope: !5)
|
|
|
|
|
|
!9 = !{i32 1, !"Debug Info Version", i32 3}
|