aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Sanders <daniel_l_sanders@apple.com>2020-04-17 11:25:51 -0700
committerDaniel Sanders <daniel_l_sanders@apple.com>2020-04-17 13:45:44 -0700
commit7f7f98b154484a90d4f2850a19dfc0a6d03ef70c (patch)
treea3c6dae6d257fb1dd10e6b451d4da638506cf899
parent5f69e53e5592141bf81f41fdf92106bf5cc3821c (diff)
downloadllvm-7f7f98b154484a90d4f2850a19dfc0a6d03ef70c.zip
llvm-7f7f98b154484a90d4f2850a19dfc0a6d03ef70c.tar.gz
llvm-7f7f98b154484a90d4f2850a19dfc0a6d03ef70c.tar.bz2
[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
-rw-r--r--llvm/lib/CodeGen/GlobalISel/Legalizer.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/GlobalISel/Legalizer.cpp b/llvm/lib/CodeGen/GlobalISel/Legalizer.cpp
index 4b6d24b..823dcee 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