aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-cfi-verify
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2021-02-10 09:44:13 -0800
committerFangrui Song <i@maskray.me>2021-02-10 09:44:13 -0800
commit4f30a3d3d26d55c0701dc56dde711667320fdd30 (patch)
tree418b6766f0bc599cfc9f61b4eff49424698a9d54 /llvm/tools/llvm-cfi-verify
parent11f32a41c2144aeec80d1dce8cc6908fa91794a3 (diff)
downloadllvm-4f30a3d3d26d55c0701dc56dde711667320fdd30.zip
llvm-4f30a3d3d26d55c0701dc56dde711667320fdd30.tar.gz
llvm-4f30a3d3d26d55c0701dc56dde711667320fdd30.tar.bz2
[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.
Diffstat (limited to 'llvm/tools/llvm-cfi-verify')
-rw-r--r--llvm/tools/llvm-cfi-verify/lib/FileAnalysis.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/tools/llvm-cfi-verify/lib/FileAnalysis.cpp b/llvm/tools/llvm-cfi-verify/lib/FileAnalysis.cpp
index 100f5d8..8503112 100644
--- a/llvm/tools/llvm-cfi-verify/lib/FileAnalysis.cpp
+++ b/llvm/tools/llvm-cfi-verify/lib/FileAnalysis.cpp
@@ -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);