summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/FormatEntity.cpp
diff options
context:
space:
mode:
authorEnrico Granata <egranata@apple.com>2015-08-27 18:18:49 +0000
committerEnrico Granata <egranata@apple.com>2015-08-27 18:18:49 +0000
commitdb3d58b94a66e1dd81d3ac75c85e1743cb93509a (patch)
tree94030a7d43e785757b9edb6d872139e5405476e2 /lldb/source/Core/FormatEntity.cpp
parent874e93f4b4b307892ab300dd908d1f2cd55e6c76 (diff)
downloadbcm5719-llvm-db3d58b94a66e1dd81d3ac75c85e1743cb93509a.tar.gz
bcm5719-llvm-db3d58b94a66e1dd81d3ac75c85e1743cb93509a.zip
Remove class Language - the only thing it was actually being used for is provided by LanguageRuntime already
llvm-svn: 246177
Diffstat (limited to 'lldb/source/Core/FormatEntity.cpp')
-rw-r--r--lldb/source/Core/FormatEntity.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/lldb/source/Core/FormatEntity.cpp b/lldb/source/Core/FormatEntity.cpp
index e261a852085..0f8599ae404 100644
--- a/lldb/source/Core/FormatEntity.cpp
+++ b/lldb/source/Core/FormatEntity.cpp
@@ -13,7 +13,6 @@
#include "lldb/Core/Address.h"
#include "lldb/Core/Debugger.h"
-#include "lldb/Core/Language.h"
#include "lldb/Core/Module.h"
#include "lldb/Core/Stream.h"
#include "lldb/Core/StreamString.h"
@@ -31,6 +30,7 @@
#include "lldb/Symbol/Symbol.h"
#include "lldb/Symbol/VariableList.h"
#include "lldb/Target/ExecutionContext.h"
+#include "lldb/Target/LanguageRuntime.h"
#include "lldb/Target/Process.h"
#include "lldb/Target/RegisterContext.h"
#include "lldb/Target/SectionLoadList.h"
@@ -1528,8 +1528,7 @@ FormatEntity::Format (const Entry &entry,
CompileUnit *cu = sc->comp_unit;
if (cu)
{
- Language lang(cu->GetLanguage());
- const char *lang_name = lang.AsCString();
+ const char *lang_name = LanguageRuntime::GetNameForLanguageType(cu->GetLanguage());
if (lang_name)
{
s.PutCString(lang_name);
OpenPOWER on IntegriCloud