1 //===-- ObjCPlusPlusLanguage.cpp --------------------------------------*- C++
4 // The LLVM Compiler Infrastructure
6 // This file is distributed under the University of Illinois Open Source
7 // License. See LICENSE.TXT for details.
9 //===----------------------------------------------------------------------===//
11 #include "ObjCPlusPlusLanguage.h"
13 #include "lldb/Core/PluginManager.h"
14 #include "lldb/Utility/ConstString.h"
17 using namespace lldb_private;
19 void ObjCPlusPlusLanguage::Initialize() {
20 PluginManager::RegisterPlugin(GetPluginNameStatic(), "Objective-C++ Language",
24 void ObjCPlusPlusLanguage::Terminate() {
25 PluginManager::UnregisterPlugin(CreateInstance);
28 lldb_private::ConstString ObjCPlusPlusLanguage::GetPluginNameStatic() {
29 static ConstString g_name("objcplusplus");
33 //------------------------------------------------------------------
34 // PluginInterface protocol
35 //------------------------------------------------------------------
36 lldb_private::ConstString ObjCPlusPlusLanguage::GetPluginName() {
37 return GetPluginNameStatic();
40 uint32_t ObjCPlusPlusLanguage::GetPluginVersion() { return 1; }
42 //------------------------------------------------------------------
44 //------------------------------------------------------------------
45 Language *ObjCPlusPlusLanguage::CreateInstance(lldb::LanguageType language) {
47 case lldb::eLanguageTypeObjC_plus_plus:
48 return new ObjCPlusPlusLanguage();