[Lldb-commits] [lldb] 1ccfef1 - Add a case for Rust in LLDB's PDB reader
David Chisnall via lldb-commits
lldb-commits at lists.llvm.org
Wed Feb 16 01:58:33 PST 2022
Author: Arlo Siemsen
Date: 2022-02-16T09:58:05Z
New Revision: 1ccfef14e57e3ccdf9bb796142225dad8ae08168
URL: https://github.com/llvm/llvm-project/commit/1ccfef14e57e3ccdf9bb796142225dad8ae08168
DIFF: https://github.com/llvm/llvm-project/commit/1ccfef14e57e3ccdf9bb796142225dad8ae08168.diff
LOG: Add a case for Rust in LLDB's PDB reader
D115300 added Rust as a new PDB language type.
This change allows LLDB to recognize the new language type.
Reviewed By: rnk
Differential Revision: https://reviews.llvm.org/D119044
Added:
Modified:
lldb/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.cpp
lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp
Removed:
################################################################################
diff --git a/lldb/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.cpp b/lldb/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.cpp
index cda9d42129d43..8ecfadf777169 100644
--- a/lldb/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.cpp
+++ b/lldb/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.cpp
@@ -80,6 +80,8 @@ static lldb::LanguageType TranslateLanguage(PDB_Lang lang) {
return lldb::LanguageType::eLanguageTypeC;
case PDB_Lang::Swift:
return lldb::LanguageType::eLanguageTypeSwift;
+ case PDB_Lang::Rust:
+ return lldb::LanguageType::eLanguageTypeRust;
default:
return lldb::LanguageType::eLanguageTypeUnknown;
}
diff --git a/lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp b/lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp
index bdfc397d94a4c..7f450af703331 100644
--- a/lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp
+++ b/lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp
@@ -74,6 +74,8 @@ lldb::LanguageType TranslateLanguage(PDB_Lang lang) {
return lldb::LanguageType::eLanguageTypeC;
case PDB_Lang::Swift:
return lldb::LanguageType::eLanguageTypeSwift;
+ case PDB_Lang::Rust:
+ return lldb::LanguageType::eLanguageTypeRust;
default:
return lldb::LanguageType::eLanguageTypeUnknown;
}
More information about the lldb-commits
mailing list