[mlir][int-range] Limit xor int range inference to i1 (#116968)
[llvm-project.git] / lldb / source / Utility / ErrorMessages.cpp
blobaea5cb5f47c11b4b2815446936e275f645f74d22
1 //===-- ErrorMessages.cpp -------------------------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
9 #include "lldb/Utility/ErrorMessages.h"
10 #include "llvm/Support/ErrorHandling.h"
12 namespace lldb_private {
14 std::string toString(lldb::ExpressionResults e) {
15 switch (e) {
16 case lldb::eExpressionSetupError:
17 return "expression setup error";
18 case lldb::eExpressionParseError:
19 return "expression parse error";
20 case lldb::eExpressionResultUnavailable:
21 return "expression error";
22 case lldb::eExpressionCompleted:
23 return "expression completed successfully";
24 case lldb::eExpressionDiscarded:
25 return "expression discarded";
26 case lldb::eExpressionInterrupted:
27 return "expression interrupted";
28 case lldb::eExpressionHitBreakpoint:
29 return "expression hit breakpoint";
30 case lldb::eExpressionTimedOut:
31 return "expression timed out";
32 case lldb::eExpressionStoppedForDebug:
33 return "expression stop at entry point for debugging";
34 case lldb::eExpressionThreadVanished:
35 return "expression thread vanished";
37 llvm_unreachable("unhandled enumerator");
40 } // namespace lldb_private