1 //===-- SBLanguageRuntime.cpp -----------------------------------*- C++ -*-===// 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 9 #include "lldb/API/SBLanguageRuntime.h" 10 #include "lldb/Target/Language.h" 11 12 using namespace lldb; 13 using namespace lldb_private; 14 15 lldb::LanguageType 16 SBLanguageRuntime::GetLanguageTypeFromString(const char *string) { 17 return Language::GetLanguageTypeFromString( 18 llvm::StringRef::withNullAsEmpty(string)); 19 } 20 21 const char * 22 SBLanguageRuntime::GetNameForLanguageType(lldb::LanguageType language) { 23 return Language::GetNameForLanguageType(language); 24 } 25