[llvm-cfi-verify] Set UseSymbolTable to false

parseSectionContents expects to skip regions not described by DWARF.  With my
pending DebugInfo/Symbolize change, the filename can be recovered and there
will be more IndirectInstructions entries.
This commit is contained in:
Fangrui Song 2021-02-10 09:44:13 -08:00
parent 11f32a41c2
commit 4f30a3d3d2
1 changed files with 3 additions and 1 deletions

View File

@ -374,7 +374,9 @@ Error FileAnalysis::initialiseDisassemblyMembers() {
MCPU = "";
std::string ErrorString;
Symbolizer.reset(new LLVMSymbolizer());
LLVMSymbolizer::Options Opt;
Opt.UseSymbolTable = false;
Symbolizer.reset(new LLVMSymbolizer(Opt));
ObjectTarget =
TargetRegistry::lookupTarget(ArchName, ObjectTriple, ErrorString);