r264868 - Prepare tests for change to emit Module SourceFileName to LLVM assembly

Teresa Johnson via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 30 06:59:50 PDT 2016


Author: tejohnson
Date: Wed Mar 30 08:59:49 2016
New Revision: 264868

URL: http://llvm.org/viewvc/llvm-project?rev=264868&view=rev
Log:
Prepare tests for change to emit Module SourceFileName to LLVM assembly

Modify these tests to ignore the source file name when looking for the
expected string. It was already catching the source file name once via
the ModuleID, and will catch it another time with an impending change to
LLVM to serialize out the module's SourceFileName.

Modified:
    cfe/trunk/test/CodeGen/sret.c
    cfe/trunk/test/CodeGen/sret2.c

Modified: cfe/trunk/test/CodeGen/sret.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/sret.c?rev=264868&r1=264867&r2=264868&view=diff
==============================================================================
--- cfe/trunk/test/CodeGen/sret.c (original)
+++ cfe/trunk/test/CodeGen/sret.c Wed Mar 30 08:59:49 2016
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 %s -emit-llvm -o - | grep sret | count 5
+// RUN: %clang_cc1 %s -emit-llvm -o - | grep sret | grep -v 'sret.c' | count 4
 
 struct abc {
  long a;

Modified: cfe/trunk/test/CodeGen/sret2.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/sret2.c?rev=264868&r1=264867&r2=264868&view=diff
==============================================================================
--- cfe/trunk/test/CodeGen/sret2.c (original)
+++ cfe/trunk/test/CodeGen/sret2.c Wed Mar 30 08:59:49 2016
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 %s -emit-llvm -o - | grep sret | count 2
+// RUN: %clang_cc1 %s -emit-llvm -o - | grep sret | grep -v 'sret2.c' | count 1
 
 struct abc {
  long a;




More information about the cfe-commits mailing list