[globalisel][legalizer] Fix --verify-legalizer-debug-locs values
authorDaniel Sanders <daniel_l_sanders@apple.com>
Fri, 17 Apr 2020 18:25:51 +0000 (11:25 -0700)
committerDaniel Sanders <daniel_l_sanders@apple.com>
Fri, 17 Apr 2020 20:45:44 +0000 (13:45 -0700)
It was using the enum class name, like so:
    =DebugLocVerifyLevel::None                                         -   No verification
Changed it to:
    =none                                                              -   No verification

llvm/lib/CodeGen/GlobalISel/Legalizer.cpp

index 4b6d24b..823dcee 100644 (file)
@@ -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