Added new method to ELFObjectFileBase to check whether the ELF image used to construct it is actually an ELF image (i.e. it has ELF magic word).
I'm assuming this would be to avoid having to write something like if (objectType == elf || objectType == elf_relocatable || /*all the other elf_* types*/ ...) (or an equivalent switch statement)? Is this something you'd use in more than one place within your code?
It is rare that an application can process all of elf_relocatable, elf_executable, and elf_shared_object. llvm-objcopy is such a tool, but most others either only handle elf_relocatable or elf_executable+elf_shared_object.