diff options
| author | Yuka Takahashi <yukatkh@gmail.com> | 2017-06-14 15:37:11 +0000 |
|---|---|---|
| committer | Yuka Takahashi <yukatkh@gmail.com> | 2017-06-14 15:37:11 +0000 |
| commit | 50a9dfa2718fda3bacdc95984d7065fac59ad147 (patch) | |
| tree | fb7a02f30e9be4823c68c0d713a00b2c254dd858 /clang/test/CodeGen/thinlto-backend-option.ll | |
| parent | eca926ab3ab639b156c51035200c1df05adc7d44 (diff) | |
| download | bcm5719-llvm-50a9dfa2718fda3bacdc95984d7065fac59ad147.tar.gz bcm5719-llvm-50a9dfa2718fda3bacdc95984d7065fac59ad147.zip | |
Be more strict when checking the -flto option value
Summary:
It seems -flto must be either "thin" or "full". I think the use of
containValue is just a typo.
Reviewers: ruiu, tejohnson
Subscribers: mehdi_amini, inglorion
Differential Revision: https://reviews.llvm.org/D34055
llvm-svn: 305392
Diffstat (limited to 'clang/test/CodeGen/thinlto-backend-option.ll')
| -rw-r--r-- | clang/test/CodeGen/thinlto-backend-option.ll | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/clang/test/CodeGen/thinlto-backend-option.ll b/clang/test/CodeGen/thinlto-backend-option.ll index 4c7c0ea3efc..4fcdd079df8 100644 --- a/clang/test/CodeGen/thinlto-backend-option.ll +++ b/clang/test/CodeGen/thinlto-backend-option.ll @@ -8,6 +8,8 @@ ; RUN: %clang -flto=thin -c -o %t.o %s ; RUN: llvm-lto -thinlto -o %t %t.o -; RUN: not %clang_cc1 -x ir %t.o -fthinlto-index=%t.thinlto.bc -backend-option -nonexistent -emit-obj -o /dev/null 2>&1 | FileCheck %s +; RUN: not %clang_cc1 -x ir %t.o -fthinlto-index=%t.thinlto.bc -backend-option -nonexistent -emit-obj -o /dev/null 2>&1 | FileCheck %s -check-prefix=UNKNOWN +; UNKNOWN: clang: Unknown command line argument '-nonexistent' -; CHECK: clang: Unknown command line argument '-nonexistent' +; RUN: not %clang_cc1 -flto=thinfoo 2>&1 | FileCheck %s -check-prefix=INVALID +; INVALID: error: invalid value 'thinfoo' in '-flto=thinfoo' |

