From d8a4011f5b284ec055ceab91815d6e656c0b6dc5 Mon Sep 17 00:00:00 2001 From: Cyndy Ishida Date: Thu, 9 Nov 2023 13:17:41 -0800 Subject: [TextAPI] Add error code for invalid input formats (#71824) --- llvm/lib/TextAPI/TextAPIError.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'llvm/lib/TextAPI/TextAPIError.cpp') diff --git a/llvm/lib/TextAPI/TextAPIError.cpp b/llvm/lib/TextAPI/TextAPIError.cpp index 07eae7ab4100..dd97381ce094 100644 --- a/llvm/lib/TextAPI/TextAPIError.cpp +++ b/llvm/lib/TextAPI/TextAPIError.cpp @@ -23,6 +23,9 @@ void TextAPIError::log(raw_ostream &OS) const { case TextAPIErrorCode::NoSuchArchitecture: OS << "no such architecture\n"; return; + case TextAPIErrorCode::InvalidInputFormat: + OS << "invalid input format\n"; + return; default: llvm_unreachable("unhandled TextAPIErrorCode"); } -- cgit v1.2.3