diff options
| author | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2017-04-20 21:44:37 +0000 |
|---|---|---|
| committer | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2017-04-20 21:44:37 +0000 |
| commit | b9cb969d9ccc41922ff2185c8ba483efc19ccb23 (patch) | |
| tree | 5b589cd61b44cfb3dd73d7b04bcaa1e30fea669c | |
| parent | a32c3e5b18acdab63ded07e3fe241e4f7822f683 (diff) | |
| download | bcm5719-llvm-b9cb969d9ccc41922ff2185c8ba483efc19ccb23.tar.gz bcm5719-llvm-b9cb969d9ccc41922ff2185c8ba483efc19ccb23.zip | |
[cfi] Add explicit -flto in create-derivers test.
This is necessary to run the test suite in ThinLTO mode - otherwise
opt complains about an input file containing several modules.
llvm-svn: 300901
| -rw-r--r-- | compiler-rt/test/cfi/create-derivers.test | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/compiler-rt/test/cfi/create-derivers.test b/compiler-rt/test/cfi/create-derivers.test index a67562b1a6c..8b569d001d8 100644 --- a/compiler-rt/test/cfi/create-derivers.test +++ b/compiler-rt/test/cfi/create-derivers.test @@ -1,20 +1,21 @@ REQUIRES: asserts -RUN: %clangxx_cfi -c -o %t1.o %S/simple-fail.cpp +%% Explicit -flto to override possible -flto=thin in %clangxx_cfi +RUN: %clangxx_cfi -flto -c -o %t1.o %S/simple-fail.cpp RUN: opt -lowertypetests -debug-only=lowertypetests -o /dev/null %t1.o 2>&1 | FileCheck --check-prefix=B0 %s B0: {{1B|B@@}}: {{.*}} size 1 -RUN: %clangxx_cfi -DB32 -c -o %t2.o %S/simple-fail.cpp +RUN: %clangxx_cfi -DB32 -flto -c -o %t2.o %S/simple-fail.cpp RUN: opt -lowertypetests -debug-only=lowertypetests -o /dev/null %t2.o 2>&1 | FileCheck --check-prefix=B32 %s B32: {{1B|B@@}}: {{.*}} size 24 B32-NOT: all-ones -RUN: %clangxx_cfi -DB64 -c -o %t3.o %S/simple-fail.cpp +RUN: %clangxx_cfi -DB64 -flto -c -o %t3.o %S/simple-fail.cpp RUN: opt -lowertypetests -debug-only=lowertypetests -o /dev/null %t3.o 2>&1 | FileCheck --check-prefix=B64 %s B64: {{1B|B@@}}: {{.*}} size 54 B64-NOT: all-ones -RUN: %clangxx_cfi -DBM -c -o %t4.o %S/simple-fail.cpp +RUN: %clangxx_cfi -DBM -flto -c -o %t4.o %S/simple-fail.cpp RUN: opt -lowertypetests -debug-only=lowertypetests -o /dev/null %t4.o 2>&1 | FileCheck --check-prefix=BM %s BM: {{1B|B@@}}: {{.*}} size 84 BM-NOT: all-ones |

