mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-02 00:37:09 +00:00
Add a test for r263577: "Add missing error handling in llvm-lto"
On Rafael's suggestion! (also fix a discrepancy between this error message format and the others) From: Mehdi Amini <mehdi.amini@apple.com> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@263860 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d63e0d2742
commit
e314781f09
@ -3,3 +3,6 @@
|
|||||||
|
|
||||||
; RUN: not llvm-lto --list-symbols-only %S/Inputs/empty.bc 2>&1 | FileCheck %s --check-prefix=CHECK-LIST
|
; RUN: not llvm-lto --list-symbols-only %S/Inputs/empty.bc 2>&1 | FileCheck %s --check-prefix=CHECK-LIST
|
||||||
; CHECK-LIST: llvm-lto: error loading file '{{.*}}/Inputs/empty.bc': The file was not recognized as a valid object file
|
; CHECK-LIST: llvm-lto: error loading file '{{.*}}/Inputs/empty.bc': The file was not recognized as a valid object file
|
||||||
|
|
||||||
|
; RUN: not llvm-lto --thinlto %S/Inputs/empty.bc 2>&1 | FileCheck %s --check-prefix=CHECK-THIN
|
||||||
|
; CHECK-THIN: llvm-lto: error loading file '{{.*}}/Inputs/empty.bc': The file was not recognized as a valid object file
|
||||||
|
@ -258,7 +258,7 @@ static void createCombinedModuleSummaryIndex() {
|
|||||||
CurrentActivity = "loading file '" + Filename + "'";
|
CurrentActivity = "loading file '" + Filename + "'";
|
||||||
ErrorOr<std::unique_ptr<ModuleSummaryIndex>> IndexOrErr =
|
ErrorOr<std::unique_ptr<ModuleSummaryIndex>> IndexOrErr =
|
||||||
llvm::getModuleSummaryIndexForFile(Filename, diagnosticHandler);
|
llvm::getModuleSummaryIndexForFile(Filename, diagnosticHandler);
|
||||||
error(IndexOrErr, "error: " + CurrentActivity);
|
error(IndexOrErr, "error " + CurrentActivity);
|
||||||
std::unique_ptr<ModuleSummaryIndex> Index = std::move(IndexOrErr.get());
|
std::unique_ptr<ModuleSummaryIndex> Index = std::move(IndexOrErr.get());
|
||||||
CurrentActivity = "";
|
CurrentActivity = "";
|
||||||
// Skip files without a module summary.
|
// Skip files without a module summary.
|
||||||
|
Loading…
Reference in New Issue
Block a user