1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00
llvm-mirror/tools/llvm-readobj
Ryan Prichard 6fb1767315 [llvm-readobj] Fix bugs with unrecognized types in switch statements
Summary:
Add missing breaks. Several functions used nested switch statements,
where the outer switch branches based on the architecture, and the inner
switch handles architecture-specific types. If the type isn't
architecture-specific, break out to the generic types rather than fall
through.

getElfPtType: For GNU-style output, llvm-readobj prints
"<unknown>: 0xnnnnnnnn" for an unrecognized segment type, unless the
architecture is EM_ARM, EM_MIPS, or EM_MIPS_RS3_LE, in which case it
prints "". This behavior appears accidental, so instead, always print
the "<unknown>: 0xnnnnnnnn" string.

Reviewers: pcc, grimar

Reviewed By: grimar

Subscribers: sdardis, javed.absar, arichardson, kristof.beyls, atanasyan, llvm-commits

Differential Revision: https://reviews.llvm.org/D53730

llvm-svn: 345436
2018-10-26 23:01:54 +00:00
..
ARMEHABIPrinter.h
ARMWinEHPrinter.cpp
ARMWinEHPrinter.h
CMakeLists.txt
COFFDumper.cpp
COFFImportDumper.cpp
DwarfCFIEHPrinter.h
ELFDumper.cpp [llvm-readobj] Fix bugs with unrecognized types in switch statements 2018-10-26 23:01:54 +00:00
Error.cpp
Error.h
llvm-readobj.cpp
llvm-readobj.h
LLVMBuild.txt
MachODumper.cpp
ObjDumper.cpp
ObjDumper.h
StackMapPrinter.h
WasmDumper.cpp
Win64EHDumper.cpp
Win64EHDumper.h
WindowsResourceDumper.cpp
WindowsResourceDumper.h