diff options
| author | Francis Visoiu Mistrih <francisvm@yahoo.com> | 2019-06-14 21:38:57 +0000 |
|---|---|---|
| committer | Francis Visoiu Mistrih <francisvm@yahoo.com> | 2019-06-14 21:38:57 +0000 |
| commit | 5501dda2479580ae84291d0237e794feeb38a8d9 (patch) | |
| tree | e8bc59fa19fcb92d12285b321abdb23645b9c033 /clang/test | |
| parent | 282dac717eb440dd44d31fe8c3750650bd4d2cff (diff) | |
| download | bcm5719-llvm-5501dda2479580ae84291d0237e794feeb38a8d9.tar.gz bcm5719-llvm-5501dda2479580ae84291d0237e794feeb38a8d9.zip | |
[Remarks][NFC] Improve testing and documentation of -foptimization-record-passes
This adds:
* documentation to the user manual
* nicer error message
* test for the error case
* test for the gold plugin
llvm-svn: 363463
Diffstat (limited to 'clang/test')
| -rw-r--r-- | clang/test/CodeGen/opt-record.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/test/CodeGen/opt-record.c b/clang/test/CodeGen/opt-record.c index 3f134854fe5..da32f357282 100644 --- a/clang/test/CodeGen/opt-record.c +++ b/clang/test/CodeGen/opt-record.c @@ -5,6 +5,7 @@ // RUN: cat %t.yaml | FileCheck -check-prefix=CHECK -check-prefix=CHECK-PGO %s // RUN: %clang_cc1 -O3 -triple x86_64-unknown-linux-gnu -target-cpu x86-64 %s -o %t -dwarf-column-info -opt-record-file %t.yaml -opt-record-passes inline -emit-obj // RUN: cat %t.yaml | FileCheck -check-prefix=CHECK-PASSES %s +// RUN: not %clang_cc1 -O3 -triple x86_64-unknown-linux-gnu -target-cpu x86-64 %s -o %t -dwarf-column-info -opt-record-file %t.yaml -opt-record-passes "(foo" -emit-obj 2>&1 | FileCheck -check-prefix=CHECK-PATTERN-ERROR %s // REQUIRES: x86-registered-target void bar(); @@ -34,3 +35,5 @@ void Test(int *res, int *c, int *d, int *p, int n) { // CHECK: Function: Test // CHECK-PGO: Hotness: // CHECK-PASSES-NOT: loop-vectorize + +// CHECK-PATTERN-ERROR: error: in pattern '(foo': parentheses not balanced |

