mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-03-04 10:30:30 +00:00
Delete some dead code and add a missing "0x" prefix to a hex string in
llvm-readobj. Another bug caught by PVS-Studio. It'd be nice to actually have a test for this, but I found it by inspection from PVS-Studio. llvm-svn: 285937
This commit is contained in:
parent
1534244145
commit
e4a5de9401
@ -2389,8 +2389,7 @@ template <class ELFT> void GNUStyle<ELFT>::printFileHeaders(const ELFO *Obj) {
|
||||
OS << "\n";
|
||||
Str = printEnum(e->e_ident[ELF::EI_OSABI], makeArrayRef(ElfOSABI));
|
||||
printFields(OS, "OS/ABI:", Str);
|
||||
Str = "0x" + to_hexString(e->e_version);
|
||||
Str = to_hexString(e->e_ident[ELF::EI_ABIVERSION]);
|
||||
Str = "0x" + to_hexString(e->e_ident[ELF::EI_ABIVERSION]);
|
||||
printFields(OS, "ABI Version:", Str);
|
||||
Str = printEnum(e->e_type, makeArrayRef(ElfObjectFileType));
|
||||
printFields(OS, "Type:", Str);
|
||||
|
Loading…
x
Reference in New Issue
Block a user