dwarfdump: Use the right enum for the tu_index section
[oota-llvm.git] / tools / llvm-dwarfdump / llvm-dwarfdump.cpp
index 7de712f252ddf50d495b9869b9f3e7df3c408d4a..4352c15f336be80f62b0e20f041f0c17f21dad29 100644 (file)
@@ -70,7 +70,7 @@ static cl::opt<DIDumpType> DumpType(
         clEnumValN(DIDT_StrOffsetsDwo, "str_offsets.dwo",
                    ".debug_str_offsets.dwo"),
         clEnumValN(DIDT_CUIndex, "cu_index", ".debug_cu_index"),
-        clEnumValN(DIDT_CUIndex, "tu_index", ".debug_tu_index"), clEnumValEnd));
+        clEnumValN(DIDT_TUIndex, "tu_index", ".debug_tu_index"), clEnumValEnd));
 
 static void error(StringRef Filename, std::error_code EC) {
   if (!EC)