[lld] r265750 - Use EM_NONE instead of 0 to represent an invalid value. NFC.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 7 16:54:34 PDT 2016
Author: ruiu
Date: Thu Apr 7 18:54:33 2016
New Revision: 265750
URL: http://llvm.org/viewvc/llvm-project?rev=265750&view=rev
Log:
Use EM_NONE instead of 0 to represent an invalid value. NFC.
Modified:
lld/trunk/ELF/Driver.cpp
Modified: lld/trunk/ELF/Driver.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Driver.cpp?rev=265750&r1=265749&r2=265750&view=diff
==============================================================================
--- lld/trunk/ELF/Driver.cpp (original)
+++ lld/trunk/ELF/Driver.cpp Thu Apr 7 18:54:33 2016
@@ -66,7 +66,7 @@ static std::pair<ELFKind, uint16_t> pars
error("Windows targets are not supported on the ELF frontend: " + S);
else
error("unknown emulation: " + S);
- return {ELFNoneKind, 0};
+ return {ELFNoneKind, EM_NONE};
}
// Returns slices of MB by parsing MB as an archive file.
More information about the llvm-commits
mailing list