diff options
| author | Cyndy Ishida <cyndy_ishida@apple.com> | 2023-11-09 13:17:41 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-09 13:17:41 -0800 |
| commit | d8a4011f5b284ec055ceab91815d6e656c0b6dc5 (patch) | |
| tree | ceb7d310c4bf029c14ee02fad0bf9bec35dcab74 /llvm/lib/TextAPI/TextAPIError.cpp | |
| parent | 8b98d5b813257c331af3becbf71acd87336e74ad (diff) | |
[TextAPI] Add error code for invalid input formats (#71824)
Diffstat (limited to 'llvm/lib/TextAPI/TextAPIError.cpp')
| -rw-r--r-- | llvm/lib/TextAPI/TextAPIError.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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"); } |
