Skip to content

Commit 7f7f98b

Browse files
committed
[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
1 parent 5f69e53 commit 7f7f98b

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

llvm/lib/CodeGen/GlobalISel/Legalizer.cpp

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,13 @@ enum class DebugLocVerifyLevel {
5252
static cl::opt<DebugLocVerifyLevel> VerifyDebugLocs(
5353
"verify-legalizer-debug-locs",
5454
cl::desc("Verify that debug locations are handled"),
55-
cl::values(clEnumVal(DebugLocVerifyLevel::None, "No verification"),
56-
clEnumVal(DebugLocVerifyLevel::Legalizations,
57-
"Verify legalizations"),
58-
clEnumVal(DebugLocVerifyLevel::LegalizationsAndArtifactCombiners,
59-
"Verify legalizations and artifact combines")),
55+
cl::values(
56+
clEnumValN(DebugLocVerifyLevel::None, "none", "No verification"),
57+
clEnumValN(DebugLocVerifyLevel::Legalizations, "legalizations",
58+
"Verify legalizations"),
59+
clEnumValN(DebugLocVerifyLevel::LegalizationsAndArtifactCombiners,
60+
"legalizations+artifactcombiners",
61+
"Verify legalizations and artifact combines")),
6062
cl::init(DebugLocVerifyLevel::Legalizations));
6163
#else
6264
// Always disable it for release builds by preventing the observer from being

0 commit comments

Comments
 (0)