summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp
diff options
context:
space:
mode:
authorAaron Smith <aaron.smith@microsoft.com>2018-03-09 18:50:19 +0000
committerAaron Smith <aaron.smith@microsoft.com>2018-03-09 18:50:19 +0000
commitdee18b82c23c1637bdfad001bfe8c62bdf8c5955 (patch)
treea0dd5ca39540714fa084e20f8c8e2ca00ba9caee /lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp
parent08fa594298452d32ed539a01c6bff1f9d9a72615 (diff)
downloadbcm5719-llvm-dee18b82c23c1637bdfad001bfe8c62bdf8c5955.tar.gz
bcm5719-llvm-dee18b82c23c1637bdfad001bfe8c62bdf8c5955.zip
[SymbolFilePDB] Keep searching until the file name is found for the pdb compiland
Reviewers: zturner, rnk, lldb-commits Reviewed By: zturner Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D44182 llvm-svn: 327162
Diffstat (limited to 'lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp')
-rw-r--r--lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp b/lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp
index d0694da2d8d..0dccc8b1c17 100644
--- a/lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp
+++ b/lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp
@@ -627,9 +627,10 @@ std::string SymbolFilePDB::GetSourceFileNameForPDBCompiland(
auto file_extension = file_spec.GetFileNameExtension();
if (pdb_lang == PDB_Lang::Cpp || pdb_lang == PDB_Lang::C) {
static const char* exts[] = { "cpp", "c", "cc", "cxx" };
- if (llvm::is_contained(exts, file_extension.GetStringRef().lower()))
+ if (llvm::is_contained(exts, file_extension.GetStringRef().lower())) {
source_file_name = file_up->getFileName();
- break;
+ break;
+ }
} else if (pdb_lang == PDB_Lang::Masm &&
ConstString::Compare(file_extension, ConstString("ASM"),
false) == 0) {
OpenPOWER on IntegriCloud