[ELF] More self-explanatory error message when e_machine can't be inferred.

Thanks to Sean Silva for the suggestion!

llvm-svn: 274134
This commit is contained in:
Davide Italiano 2016-06-29 15:58:37 +00:00
parent 7108db7714
commit e3fa8f64da

View File

@ -583,7 +583,7 @@ static uint8_t getMachineKind(MemoryBufferRef MB) {
case Triple::x86_64:
return EM_X86_64;
default:
fatal("unsupported architecture: " + TripleStr);
fatal("could not infer e_machine from bitcode target triple " + TripleStr);
}
}