[llvm] 4f30a3d - [llvm-cfi-verify] Set UseSymbolTable to false

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 10 09:44:19 PST 2021


Author: Fangrui Song
Date: 2021-02-10T09:44:13-08:00
New Revision: 4f30a3d3d26d55c0701dc56dde711667320fdd30

URL: https://github.com/llvm/llvm-project/commit/4f30a3d3d26d55c0701dc56dde711667320fdd30
DIFF: https://github.com/llvm/llvm-project/commit/4f30a3d3d26d55c0701dc56dde711667320fdd30.diff

LOG: [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.

Added: 
    

Modified: 
    llvm/tools/llvm-cfi-verify/lib/FileAnalysis.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/tools/llvm-cfi-verify/lib/FileAnalysis.cpp b/llvm/tools/llvm-cfi-verify/lib/FileAnalysis.cpp
index 100f5d876513..850311274dda 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);


        


More information about the llvm-commits mailing list