LLDB mainline
ScriptInterpreterRuntimeLoader.cpp
Go to the documentation of this file.
1//===----------------------------------------------------------------------===//
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//===----------------------------------------------------------------------===//
8
10#include "lldb/Host/Config.h"
11#include "llvm/Support/ErrorHandling.h"
12
13namespace lldb_private {
14
16
17#if !LLDB_ENABLE_PYTHON
18llvm::Expected<ScriptInterpreterRuntimeLoader &>
20 switch (language) {
22 return llvm::createStringError(
23 "this build of LLDB does not include Python support");
27 return llvm::createStringError(
28 "no runtime loader for the requested script language");
29 }
30 llvm_unreachable("unhandled ScriptLanguage");
31}
32#endif
33
34} // namespace lldb_private
static llvm::Expected< ScriptInterpreterRuntimeLoader & > Get(lldb::ScriptLanguage language)
Returns the loader for language.
A class that represents a running process on the host machine.
ScriptLanguage
Script interpreter types.
@ eScriptLanguageUnknown
@ eScriptLanguageNone
@ eScriptLanguagePython