mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-03 17:24:24 +00:00
Fix the ASan fuse-lld.cc test after LLD r280012
With that change, images built with 'lld-link /debug' always have a debug directory. If no PDB filename was passed on the command line, then the filename in the executable is empty. PDB information would never work anyway if the PDB file name is empty, so go ahead and try DWARF in that case. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@280410 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
af1a999e07
commit
2ae7de27f7
@ -394,7 +394,7 @@ LLVMSymbolizer::getOrCreateModuleInfo(const std::string &ModuleName) {
|
||||
const codeview::DebugInfo *DebugInfo;
|
||||
StringRef PDBFileName;
|
||||
auto EC = CoffObject->getDebugPDBInfo(DebugInfo, PDBFileName);
|
||||
if (!EC && DebugInfo != nullptr) {
|
||||
if (!EC && DebugInfo != nullptr && !PDBFileName.empty()) {
|
||||
using namespace pdb;
|
||||
std::unique_ptr<IPDBSession> Session;
|
||||
if (auto Err = loadDataForEXE(PDB_ReaderType::DIA,
|
||||
|
Loading…
x
Reference in New Issue
Block a user