2015-04-28 20:51:16 +08:00
|
|
|
//===-- SBLanguageRuntime.cpp -----------------------------------*- C++ -*-===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#include "lldb/API/SBLanguageRuntime.h"
|
2015-09-02 09:06:46 +08:00
|
|
|
#include "lldb/Target/Language.h"
|
2015-04-28 20:51:16 +08:00
|
|
|
|
|
|
|
using namespace lldb;
|
|
|
|
using namespace lldb_private;
|
|
|
|
|
|
|
|
lldb::LanguageType
|
|
|
|
SBLanguageRuntime::GetLanguageTypeFromString (const char *string)
|
|
|
|
{
|
2015-09-02 09:06:46 +08:00
|
|
|
return Language::GetLanguageTypeFromString(string);
|
2015-04-28 20:51:16 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
const char *
|
|
|
|
SBLanguageRuntime::GetNameForLanguageType (lldb::LanguageType language)
|
|
|
|
{
|
2015-09-02 09:06:46 +08:00
|
|
|
return Language::GetNameForLanguageType(language);
|
2015-04-28 20:51:16 +08:00
|
|
|
}
|