Skip to content

Commit

Permalink
[globalisel][legalizer] Fix --verify-legalizer-debug-locs values
Browse files Browse the repository at this point in the history
It was using the enum class name, like so:
    =DebugLocVerifyLevel::None                                         -   No verification
Changed it to:
    =none                                                              -   No verification
  • Loading branch information
dsandersllvm committed Apr 17, 2020
1 parent 5f69e53 commit 7f7f98b
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions llvm/lib/CodeGen/GlobalISel/Legalizer.cpp
Expand Up @@ -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
Expand Down

0 comments on commit 7f7f98b

Please sign in to comment.