diff options
Diffstat (limited to 'lldb/source/lldb.cpp')
| -rw-r--r-- | lldb/source/lldb.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lldb/source/lldb.cpp b/lldb/source/lldb.cpp index fc9d0e83f6b..b6d56794eff 100644 --- a/lldb/source/lldb.cpp +++ b/lldb/source/lldb.cpp @@ -129,3 +129,14 @@ lldb_private::GetDefaultArchitecture () static ArchSpec g_default_arch; return g_default_arch; } + + +const char * +lldb_private::GetVoteAsCString (lldb::Vote vote) +{ + static const char * g_vote_cstrings[] = { "no", "no opinion", "yes" }; + if (vote >= eVoteNo && vote <= eVoteYes) + return g_vote_cstrings[vote-1]; + return "invalid"; +} + |

