mirror of
https://github.com/RPCS3/llvm.git
synced 2025-03-05 09:09:23 +00:00
[llvm-readobj] Support SHT_MIPS_DWARF section type flag
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@297448 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b479d37bbc
commit
6f2078159d
6
test/MC/Mips/elf-debug-section.s
Normal file
6
test/MC/Mips/elf-debug-section.s
Normal file
@ -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)
|
@ -1003,6 +1003,7 @@ static const char *getElfSectionType(unsigned Arch, unsigned Type) {
|
||||
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(unsigned Arch, unsigned Type) {
|
||||
return "MIPS_OPTIONS";
|
||||
case SHT_MIPS_ABIFLAGS:
|
||||
return "MIPS_ABIFLAGS";
|
||||
case SHT_MIPS_DWARF:
|
||||
return "SHT_MIPS_DWARF";
|
||||
}
|
||||
}
|
||||
switch (Type) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user