File tree 1 file changed +7
-3
lines changed
llvm/lib/DebugInfo/Symbolize
1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 16
16
17
17
#include " llvm/ADT/STLExtras.h"
18
18
#include " llvm/BinaryFormat/COFF.h"
19
+ #include " llvm/Config/config.h"
19
20
#include " llvm/DebugInfo/DWARF/DWARFContext.h"
20
21
#include " llvm/DebugInfo/PDB/PDB.h"
21
22
#include " llvm/DebugInfo/PDB/PDBContext.h"
@@ -555,9 +556,12 @@ LLVMSymbolizer::getOrCreateModuleInfo(const std::string &ModuleName) {
555
556
if (!EC && DebugInfo != nullptr && !PDBFileName.empty ()) {
556
557
using namespace pdb ;
557
558
std::unique_ptr<IPDBSession> Session;
558
- PDB_ReaderType ReaderType = Opts.UseNativePDBReader
559
- ? PDB_ReaderType::Native
560
- : PDB_ReaderType::DIA;
559
+
560
+ PDB_ReaderType ReaderType = PDB_ReaderType::Native;
561
+ #if LLVM_ENABLE_DIA_SDK
562
+ if (!Opts.UseNativePDBReader )
563
+ ReaderType = PDB_ReaderType::DIA;
564
+ #endif
561
565
if (auto Err = loadDataForEXE (ReaderType, Objects.first ->getFileName (),
562
566
Session)) {
563
567
Modules.emplace (ModuleName, std::unique_ptr<SymbolizableModule>());
You can’t perform that action at this time.
0 commit comments