mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
[llvm-objdump] Fail early if we can't parse the object header.
llvm-svn: 256108
This commit is contained in:
parent
2959fcb59a
commit
0a7e02f0db
@ -1527,13 +1527,14 @@ static void printFaultMaps(const ObjectFile *Obj) {
|
||||
}
|
||||
|
||||
static void printPrivateFileHeader(const ObjectFile *o) {
|
||||
if (o->isELF()) {
|
||||
if (o->isELF())
|
||||
printELFFileHeader(o);
|
||||
} else if (o->isCOFF()) {
|
||||
else if (o->isCOFF())
|
||||
printCOFFFileHeader(o);
|
||||
} else if (o->isMachO()) {
|
||||
else if (o->isMachO())
|
||||
printMachOFileHeader(o);
|
||||
}
|
||||
else
|
||||
report_fatal_error("Invalid/Unsupported object file format");
|
||||
}
|
||||
|
||||
static void DumpObject(const ObjectFile *o) {
|
||||
|
Loading…
Reference in New Issue
Block a user