[PATCH] D53578: [CodeGen] Fix clang test for gcov profiling (follow-up of D51974)

calixte via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 23 08:23:03 PDT 2018


calixte created this revision.
calixte added a reviewer: vsk.
Herald added a subscriber: cfe-commits.

After patch https://reviews.llvm.org/D51974 has landed, this one is required to fix a test.


Repository:
  rC Clang

https://reviews.llvm.org/D53578

Files:
  test/CodeGen/code-coverage.c


Index: test/CodeGen/code-coverage.c
===================================================================
--- test/CodeGen/code-coverage.c
+++ test/CodeGen/code-coverage.c
@@ -29,14 +29,10 @@
 
 // Inside function emission data structure, check that
 // -coverage-no-function-names-in-data uses null as the function name.
-// CHECK: @__llvm_internal_gcov_emit_function_args.0 = internal unnamed_addr constant
-// CHECK-SAME: { i32 {{[0-9]+}}, i8* getelementptr inbounds ({{[^,]*}}, {{[^,]*}}* @
-// CHECK-SAME: { i32 {{[0-9]+}}, i8* getelementptr inbounds ({{[^,]*}}, {{[^,]*}}* @
-// WITHOUTNAMES: @__llvm_internal_gcov_emit_function_args.0 = internal unnamed_addr constant
-// WITHOUTNAMES-NOT: getelementptr inbounds ({{.*}}@
-// WITHOUTNAMES-SAME: zeroinitializer,
-// WITHOUTNAMES-NOT: getelementptr inbounds ({{.*}}@
-// WITHOUTNAMES-SAME: { i32 {{[0-9]+}}, i8* null,
+// CHECK: {{.*}} private unnamed{{.*}}test1\00{{.*}}
+// CHECK: {{.*}} private unnamed{{.*}}test2\00{{.*}}
+// WITHOUTNAMES-NOT: {{.*}} private unnamed{{.*}}test1\00{{.*}}
+// WITHOUTNAMES-NOT: {{.*}} private unnamed{{.*}}test2\00{{.*}}
 
 // Check that the noredzone flag is set on the generated functions.
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D53578.170653.patch
Type: text/x-patch
Size: 1183 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20181023/f5cebd76/attachment.bin>


More information about the cfe-commits mailing list