dwarfdump: Use the right enum for the tu_index section
authorDavid Blaikie <dblaikie@gmail.com>
Thu, 12 Nov 2015 00:44:35 +0000 (00:44 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Thu, 12 Nov 2015 00:44:35 +0000 (00:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@252835 91177308-0d34-0410-b5e6-96231b3b80d8

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)