]> granicus.if.org Git - clang/commitdiff
Don't generate assembly in backend diagnostic tests
authorAlp Toker <alp@nuanti.com>
Fri, 6 Jun 2014 11:20:58 +0000 (11:20 +0000)
committerAlp Toker <alp@nuanti.com>
Fri, 6 Jun 2014 11:20:58 +0000 (11:20 +0000)
A leftover -S was generating unwanted output in the source tree overriding
-only flags that normally disable output.

This reverts commit r210323 and implements the proper fix.

Reported by Timur Iskhodzhanov!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@210326 91177308-0d34-0410-b5e6-96231b3b80d8

test/Frontend/optimization-remark-line-directive.c
test/Frontend/optimization-remark.c

index c7606276ed0575a99bd9155c225d472da62ab7ad..f4c0011fb4f8d7c11fda7009a5e56d760ca185ee 100644 (file)
@@ -2,7 +2,7 @@
 // directives. We cannot map #line directives back to
 // a SourceLocation.
 
-// RUN: %clang_cc1 %s -Rpass=inline -S -gline-tables-only -dwarf-column-info -emit-llvm-only -verify
+// RUN: %clang_cc1 %s -Rpass=inline -gline-tables-only -dwarf-column-info -emit-llvm-only -verify
 
 int foo(int x, int y) __attribute__((always_inline));
 int foo(int x, int y) { return x + y; }
index d99f32d567f0a2297850c21013e7adfcff0b26ca..ef7df618e0ab13e998f9a42dc4bd5f7c393a43c6 100644 (file)
@@ -3,8 +3,8 @@
 // always trigger the inliner, so it should be independent of the
 // optimization level.
 
-// RUN: %clang_cc1 %s -Rpass=inline -Rpass-analysis=inline -Rpass-missed=inline -O0 -gline-tables-only -emit-llvm-only -verify -S -o /dev/null
-// RUN: %clang_cc1 %s -DNDEBUG -Rpass=inline -emit-llvm-only -verify -S -o /dev/null
+// RUN: %clang_cc1 %s -Rpass=inline -Rpass-analysis=inline -Rpass-missed=inline -O0 -gline-tables-only -emit-llvm-only -verify
+// RUN: %clang_cc1 %s -DNDEBUG -Rpass=inline -emit-llvm-only -verify
 
 int foo(int x, int y) __attribute__((always_inline));
 int foo(int x, int y) { return x + y; }