[llvm] fd25a0a - [llvm-lto2] Remove unneeded cl::init(false). NFC

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 1 14:35:41 PDT 2022


Author: Fangrui Song
Date: 2022-07-01T14:35:36-07:00
New Revision: fd25a0aa41c0eda517f1e82c5ee9e107cf426fcd

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

LOG: [llvm-lto2] Remove unneeded cl::init(false). NFC

Added: 
    

Modified: 
    llvm/tools/llvm-lto2/llvm-lto2.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/tools/llvm-lto2/llvm-lto2.cpp b/llvm/tools/llvm-lto2/llvm-lto2.cpp
index c73320add0be4..f79db36d2d2d6 100644
--- a/llvm/tools/llvm-lto2/llvm-lto2.cpp
+++ b/llvm/tools/llvm-lto2/llvm-lto2.cpp
@@ -68,18 +68,18 @@ static cl::opt<std::string> AAPipeline("aa-pipeline",
 static cl::opt<bool> SaveTemps("save-temps", cl::desc("Save temporary files"));
 
 static cl::opt<bool>
-    ThinLTODistributedIndexes("thinlto-distributed-indexes", cl::init(false),
+    ThinLTODistributedIndexes("thinlto-distributed-indexes",
                               cl::desc("Write out individual index and "
                                        "import files for the "
                                        "distributed backend case"));
 
 static cl::opt<bool>
-    ThinLTOEmitIndexes("thinlto-emit-indexes", cl::init(false),
+    ThinLTOEmitIndexes("thinlto-emit-indexes",
                        cl::desc("Write out individual index files via "
                                 "InProcessThinLTO"));
 
 static cl::opt<bool>
-    ThinLTOEmitImports("thinlto-emit-imports", cl::init(false),
+    ThinLTOEmitImports("thinlto-emit-imports",
                        cl::desc("Write out individual imports files via "
                                 "InProcessThinLTO. Has no effect unless "
                                 "specified with -thinlto-emit-indexes or "
@@ -153,14 +153,14 @@ static cl::opt<std::string>
 static cl::opt<bool>
     RunCSIRInstr("lto-cspgo-gen",
                  cl::desc("Run PGO context sensitive IR instrumentation"),
-                 cl::init(false), cl::Hidden);
+                 cl::Hidden);
 
 static cl::opt<bool> LtoOpaquePointers("lto-opaque-pointers",
                                        cl::desc("Enable opaque pointer types"),
                                        cl::init(true), cl::Hidden);
 
 static cl::opt<bool>
-    DebugPassManager("debug-pass-manager", cl::init(false), cl::Hidden,
+    DebugPassManager("debug-pass-manager", cl::Hidden,
                      cl::desc("Print pass management debugging information"));
 
 static cl::opt<std::string>
@@ -173,7 +173,7 @@ static cl::list<std::string>
 static cl::opt<bool> EnableFreestanding(
     "lto-freestanding",
     cl::desc("Enable Freestanding (disable builtins / TLI) during LTO"),
-    cl::init(false), cl::Hidden);
+    cl::Hidden);
 
 static void check(Error E, std::string Msg) {
   if (!E)


        


More information about the llvm-commits mailing list