[llvm] 7f7f98b - [globalisel][legalizer] Fix --verify-legalizer-debug-locs values

Daniel Sanders via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 17 13:46:00 PDT 2020


Author: Daniel Sanders
Date: 2020-04-17T13:45:44-07:00
New Revision: 7f7f98b154484a90d4f2850a19dfc0a6d03ef70c

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

LOG: [globalisel][legalizer] Fix --verify-legalizer-debug-locs values

It was using the enum class name, like so:
    =DebugLocVerifyLevel::None                                         -   No verification
Changed it to:
    =none                                                              -   No verification

Added: 
    

Modified: 
    llvm/lib/CodeGen/GlobalISel/Legalizer.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/CodeGen/GlobalISel/Legalizer.cpp b/llvm/lib/CodeGen/GlobalISel/Legalizer.cpp
index 4b6d24ba73e8..823dceeae288 100644
--- a/llvm/lib/CodeGen/GlobalISel/Legalizer.cpp
+++ b/llvm/lib/CodeGen/GlobalISel/Legalizer.cpp
@@ -52,11 +52,13 @@ enum class DebugLocVerifyLevel {
 static cl::opt<DebugLocVerifyLevel> VerifyDebugLocs(
     "verify-legalizer-debug-locs",
     cl::desc("Verify that debug locations are handled"),
-    cl::values(clEnumVal(DebugLocVerifyLevel::None, "No verification"),
-               clEnumVal(DebugLocVerifyLevel::Legalizations,
-                         "Verify legalizations"),
-               clEnumVal(DebugLocVerifyLevel::LegalizationsAndArtifactCombiners,
-                         "Verify legalizations and artifact combines")),
+    cl::values(
+        clEnumValN(DebugLocVerifyLevel::None, "none", "No verification"),
+        clEnumValN(DebugLocVerifyLevel::Legalizations, "legalizations",
+                   "Verify legalizations"),
+        clEnumValN(DebugLocVerifyLevel::LegalizationsAndArtifactCombiners,
+                   "legalizations+artifactcombiners",
+                   "Verify legalizations and artifact combines")),
     cl::init(DebugLocVerifyLevel::Legalizations));
 #else
 // Always disable it for release builds by preventing the observer from being


        


More information about the llvm-commits mailing list