summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/Language.cpp
diff options
context:
space:
mode:
authorDawn Perchik <dawn@burble.org>2015-06-17 22:30:24 +0000
committerDawn Perchik <dawn@burble.org>2015-06-17 22:30:24 +0000
commitd0e87eb07e07cf862e3ccb53a46eaab09a1e8ae9 (patch)
treed7986e738fc68199ee8fd06b848a4622401375ef /lldb/source/Core/Language.cpp
parentfaf558224da50d43421c397235906f0985036138 (diff)
downloadbcm5719-llvm-d0e87eb07e07cf862e3ccb53a46eaab09a1e8ae9.tar.gz
bcm5719-llvm-d0e87eb07e07cf862e3ccb53a46eaab09a1e8ae9.zip
Fix enum LanguageType values and language string table lookups.
Summary: * Fix enum LanguageType values so that they can be used as indexes into array language_names and g_languages as assumed by LanguageRuntime::GetNameForLanguageType, Language::SetLanguageFromCString and Language::AsCString. * Add DWARFCompileUnit::LanguageTypeFromDWARF to convert from DWARF DW_LANG_* values to enum LanguageType values. Reviewed By: clayborg, abidh Differential Revision: http://reviews.llvm.org/D10484 llvm-svn: 239963
Diffstat (limited to 'lldb/source/Core/Language.cpp')
-rw-r--r--lldb/source/Core/Language.cpp20
1 files changed, 19 insertions, 1 deletions
diff --git a/lldb/source/Core/Language.cpp b/lldb/source/Core/Language.cpp
index 1ffd5aadc52..1cc4b8a0dc9 100644
--- a/lldb/source/Core/Language.cpp
+++ b/lldb/source/Core/Language.cpp
@@ -46,7 +46,25 @@ g_languages[] =
{ { "objc++" , NULL , "Objective-C++" } },
{ { "upc" , NULL , "Unified Parallel C" } },
{ { "d" , NULL , "D" } },
- { { "python" , NULL , "Python" } }
+ { { "python" , NULL , "Python" } },
+ { { "opencl" , "OpenCL" , "OpenCL" } },
+ { { "go" , "Go" , "Go" } },
+ { { "modula3" , "Modula3" , "Modula 3" } },
+ { { "haskell" , "Haskell" , "Haskell" } },
+ { { "c++03" , "C_plus_plus_03" , "ISO C++:2003" } },
+ { { "c++11" , "C_plus_plus_11" , "ISO C++:2011" } },
+ { { "ocaml" , "OCaml" , "OCaml" } },
+ { { "rust" , "Rust" , "Rust" } },
+ { { "c11" , "C11" , "ISO C:2011" } },
+ { { "swift" , "Swift" , "Swift" } },
+ { { "julia" , "Julia" , "Julia" } },
+ { { "dylan" , "Dylan" , "Dylan" } },
+ { { "c++14" , "C_plus_plus_14" , "ISO C++:2014" } },
+ { { "f03" , "Fortran03" , "ISO Fortran 2003" } },
+ { { "f08" , "Fortran08" , "ISO Fortran 2008" } },
+ // Vendor Extensions
+ { { "mipsassem" , "Mips_Assembler" , "Mips Assembler" } },
+ { { "renderscript" , "RenderScript" , "RenderScript" } }
};
static const size_t g_num_languages = llvm::array_lengthof(g_languages);
OpenPOWER on IntegriCloud