From 0c7bb965336d458a2582cc8542d43bec1330430d Mon Sep 17 00:00:00 2001 From: Teresa Johnson Date: Wed, 30 Mar 2016 13:59:49 +0000 Subject: [PATCH] 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. llvm-svn: 264868 --- clang/test/CodeGen/sret.c | 2 +- clang/test/CodeGen/sret2.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/clang/test/CodeGen/sret.c b/clang/test/CodeGen/sret.c index 5f0d074..201e3b8 100644 --- a/clang/test/CodeGen/sret.c +++ b/clang/test/CodeGen/sret.c @@ -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; diff --git a/clang/test/CodeGen/sret2.c b/clang/test/CodeGen/sret2.c index d103d87..0e254ed 100644 --- a/clang/test/CodeGen/sret2.c +++ b/clang/test/CodeGen/sret2.c @@ -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; -- 2.7.4