diff options
author | Adrian Prantl <aprantl@apple.com> | 2016-04-08 22:43:06 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2016-04-08 22:43:06 +0000 |
commit | 826824ea3db9ef2659b5da73141f5f37e4dad783 (patch) | |
tree | 154bb777bf774c43ebba70690e84af9c2ae8eeb0 /clang/test/Frontend | |
parent | 5992a72b4d21f3ea15a0ecbb593d92c9bc4fe1a0 (diff) | |
download | bcm5719-llvm-826824ea3db9ef2659b5da73141f5f37e4dad783.tar.gz bcm5719-llvm-826824ea3db9ef2659b5da73141f5f37e4dad783.zip |
Use NoDebug compile units to mark debug metadata used only for sample-based
profiling and optimization remarks and indicate that no debug info shall
be emitted for these compile units.
http://reviews.llvm.org/D18808
<rdar://problem/25427165>
llvm-svn: 265862
Diffstat (limited to 'clang/test/Frontend')
-rw-r--r-- | clang/test/Frontend/optimization-remark.c | 5 | ||||
-rw-r--r-- | clang/test/Frontend/profile-sample-use-loc-tracking.c | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/clang/test/Frontend/optimization-remark.c b/clang/test/Frontend/optimization-remark.c index e5bd75cbdb3..72cad8ff608 100644 --- a/clang/test/Frontend/optimization-remark.c +++ b/clang/test/Frontend/optimization-remark.c @@ -27,9 +27,10 @@ // CHECK: , !dbg ! // CHECK-NOT: DW_TAG_base_type -// But llvm.dbg.cu should be missing (to prevent writing debug info to +// The CU should be marked NoDebug (to prevent writing debug info to // the final output). -// CHECK-NOT: !llvm.dbg.cu = !{ +// CHECK: !llvm.dbg.cu = !{![[CU:.*]]} +// CHECK: ![[CU]] = distinct !DICompileUnit({{.*}}emissionKind: NoDebug int foo(int x, int y) __attribute__((always_inline)); int foo(int x, int y) { return x + y; } diff --git a/clang/test/Frontend/profile-sample-use-loc-tracking.c b/clang/test/Frontend/profile-sample-use-loc-tracking.c index 31faad68d39..6d722c29852 100644 --- a/clang/test/Frontend/profile-sample-use-loc-tracking.c +++ b/clang/test/Frontend/profile-sample-use-loc-tracking.c @@ -10,9 +10,10 @@ // CHECK: , !dbg ! // CHECK-NOT: DW_TAG_base_type -// But llvm.dbg.cu should be missing (to prevent writing debug info to +// The CU should be marked NoDebug (to prevent writing debug info to // the final output). -// CHECK-NOT: !llvm.dbg.cu = !{ +// CHECK: !llvm.dbg.cu = !{![[CU:.*]]} +// CHECK: ![[CU]] = distinct !DICompileUnit({{.*}}emissionKind: NoDebug int bar(int j) { return (j + j - 2) * (j - 2) * j; |