[lld] r274134 - [ELF] More self-explanatory error message when e_machine can't be inferred.
Davide Italiano via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 29 08:58:38 PDT 2016
Author: davide
Date: Wed Jun 29 10:58:37 2016
New Revision: 274134
URL: http://llvm.org/viewvc/llvm-project?rev=274134&view=rev
Log:
[ELF] More self-explanatory error message when e_machine can't be inferred.
Thanks to Sean Silva for the suggestion!
Modified:
lld/trunk/ELF/InputFiles.cpp
Modified: lld/trunk/ELF/InputFiles.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/InputFiles.cpp?rev=274134&r1=274133&r2=274134&view=diff
==============================================================================
--- lld/trunk/ELF/InputFiles.cpp (original)
+++ lld/trunk/ELF/InputFiles.cpp Wed Jun 29 10:58:37 2016
@@ -583,7 +583,7 @@ static uint8_t getMachineKind(MemoryBuff
case Triple::x86_64:
return EM_X86_64;
default:
- fatal("unsupported architecture: " + TripleStr);
+ fatal("could not infer e_machine from bitcode target triple " + TripleStr);
}
}
More information about the llvm-commits
mailing list