[llvm] 336bdf1 - [verify-uselistorder] Fix a typo, fix linking

Martin Storsjö via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 25 02:53:40 PDT 2024


Author: Martin Storsjö
Date: 2024-03-25T11:53:20+02:00
New Revision: 336bdf1a255571f8d894e8befe4be7e9141f7541

URL: https://github.com/llvm/llvm-project/commit/336bdf1a255571f8d894e8befe4be7e9141f7541
DIFF: https://github.com/llvm/llvm-project/commit/336bdf1a255571f8d894e8befe4be7e9141f7541.diff

LOG: [verify-uselistorder] Fix a typo, fix linking

This fixes a typo from 2ef612050844355906e4b67d892a00bbb58c41d6,
which broke the build with errors like:

    ld.lld: error: undefined symbol: LoadBitcodeIntoNewDbgInforFormat
    >>> referenced by verify-uselistorder.cpp
    >>>               tools/verify-uselistorder/CMakeFiles/verify-uselistorder.dir/verify-uselistorder.cpp.o:(main)
    >>> did you mean: LoadBitcodeIntoNewDbgInfoFormat
    >>> defined in: lib/libLLVMBitReader.a(BitcodeReader.cpp.o)
    collect2: error: ld returned 1 exit status

Added: 
    

Modified: 
    llvm/tools/verify-uselistorder/verify-uselistorder.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/tools/verify-uselistorder/verify-uselistorder.cpp b/llvm/tools/verify-uselistorder/verify-uselistorder.cpp
index 8b299c394e4e5f..cb07dede1d1374 100644
--- a/llvm/tools/verify-uselistorder/verify-uselistorder.cpp
+++ b/llvm/tools/verify-uselistorder/verify-uselistorder.cpp
@@ -68,7 +68,7 @@ static cl::opt<unsigned>
                 cl::desc("Number of times to shuffle and verify use-lists"),
                 cl::init(1), cl::cat(Cat));
 
-extern cl::opt<cl::boolOrDefault> LoadBitcodeIntoNewDbgInforFormat;
+extern cl::opt<cl::boolOrDefault> LoadBitcodeIntoNewDbgInfoFormat;
 
 namespace {
 
@@ -546,8 +546,8 @@ int main(int argc, char **argv) {
                               "llvm tool to verify use-list order\n");
 
   // Do not load bitcode into the new debug info format by default.
-  if (LoadBitcodeIntoNewDbgInforFormat == cl::boolOrDefault::BOU_UNSET)
-    LoadBitcodeIntoNewDbgInforFormat = cl::boolOrDefault::BOU_FALSE;
+  if (LoadBitcodeIntoNewDbgInfoFormat == cl::boolOrDefault::BOU_UNSET)
+    LoadBitcodeIntoNewDbgInfoFormat = cl::boolOrDefault::BOU_FALSE;
 
   LLVMContext Context;
   SMDiagnostic Err;


        


More information about the llvm-commits mailing list