[PATCH] FileCheck-ize test and make sure more things don't happen.
Paul Robinson
Paul_Robinson at playstation.sony.com
Thu Jun 25 13:58:53 PDT 2015
Hi dblaikie, echristo,
Attirbute 'nodebug' means no llvm.dbg.* intrinsics, no !dbg annotations, and no DISubprogram for the function.
http://reviews.llvm.org/D10747
Files:
test/CodeGen/attr-nodebug.c
Index: test/CodeGen/attr-nodebug.c
===================================================================
--- test/CodeGen/attr-nodebug.c
+++ test/CodeGen/attr-nodebug.c
@@ -1,5 +1,4 @@
-// RUN: %clang_cc1 -g -emit-llvm -o %t %s
-// RUN: not grep 'call void @llvm.dbg.func.start' %t
+// RUN: %clang_cc1 -g -emit-llvm -o - %s | FileCheck %s
void t1() __attribute__((nodebug));
@@ -10,3 +9,10 @@
a++;
}
+// IR should have no llvm.dbg.* calls, or !dbg annotations.
+// CHECK-LABEL: @t1
+// CHECK-NOT: dbg
+// CHECK: }
+
+// And no function description for debug info.
+// CHECK-NOT: DISubprogram
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D10747.28501.patch
Type: text/x-patch
Size: 609 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150625/62cb4551/attachment.bin>
More information about the cfe-commits
mailing list