[llvm] r297448 - [llvm-readobj] Support SHT_MIPS_DWARF section type flag
Simon Atanasyan via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 10 00:22:25 PST 2017
Author: atanasyan
Date: Fri Mar 10 02:22:25 2017
New Revision: 297448
URL: http://llvm.org/viewvc/llvm-project?rev=297448&view=rev
Log:
[llvm-readobj] Support SHT_MIPS_DWARF section type flag
Added:
llvm/trunk/test/MC/Mips/elf-debug-section.s
Modified:
llvm/trunk/tools/llvm-readobj/ELFDumper.cpp
Added: llvm/trunk/test/MC/Mips/elf-debug-section.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/Mips/elf-debug-section.s?rev=297448&view=auto
==============================================================================
--- llvm/trunk/test/MC/Mips/elf-debug-section.s (added)
+++ llvm/trunk/test/MC/Mips/elf-debug-section.s Fri Mar 10 02:22:25 2017
@@ -0,0 +1,6 @@
+# RUN: llvm-mc -filetype=obj -triple=mips-linux-gnu -g %s -o - \
+# RUN: | llvm-readobj -s | FileCheck %s
+
+# CHECK: Section {
+# CHECK: Name: .debug_line
+# CHECK-NEXT: Type: SHT_MIPS_DWARF (0x7000001E)
Modified: llvm/trunk/tools/llvm-readobj/ELFDumper.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-readobj/ELFDumper.cpp?rev=297448&r1=297447&r2=297448&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-readobj/ELFDumper.cpp (original)
+++ llvm/trunk/tools/llvm-readobj/ELFDumper.cpp Fri Mar 10 02:22:25 2017
@@ -1003,6 +1003,7 @@ static const char *getElfSectionType(uns
LLVM_READOBJ_ENUM_CASE(ELF, SHT_MIPS_REGINFO);
LLVM_READOBJ_ENUM_CASE(ELF, SHT_MIPS_OPTIONS);
LLVM_READOBJ_ENUM_CASE(ELF, SHT_MIPS_ABIFLAGS);
+ LLVM_READOBJ_ENUM_CASE(ELF, SHT_MIPS_DWARF);
}
}
@@ -2627,6 +2628,8 @@ std::string getSectionTypeString(unsigne
return "MIPS_OPTIONS";
case SHT_MIPS_ABIFLAGS:
return "MIPS_ABIFLAGS";
+ case SHT_MIPS_DWARF:
+ return "SHT_MIPS_DWARF";
}
}
switch (Type) {
More information about the llvm-commits
mailing list