[lld] r262653 - Delete dead code.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 3 12:45:26 PST 2016
Author: rafael
Date: Thu Mar 3 14:45:26 2016
New Revision: 262653
URL: http://llvm.org/viewvc/llvm-project?rev=262653&view=rev
Log:
Delete dead code.
Modified:
lld/trunk/ELF/Error.cpp
lld/trunk/ELF/Error.h
Modified: lld/trunk/ELF/Error.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Error.cpp?rev=262653&r1=262652&r2=262653&view=diff
==============================================================================
--- lld/trunk/ELF/Error.cpp (original)
+++ lld/trunk/ELF/Error.cpp Thu Mar 3 14:45:26 2016
@@ -54,11 +54,6 @@ void fatal(const Twine &Msg, const Twine
fatal(Prefix + ": " + Msg);
}
-void fatal(std::error_code EC, const Twine &Prefix) {
- if (EC)
- fatal(Prefix + ": " + EC.message());
-}
-
void fatal(std::error_code EC) {
if (EC)
fatal(EC.message());
Modified: lld/trunk/ELF/Error.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Error.h?rev=262653&r1=262652&r2=262653&view=diff
==============================================================================
--- lld/trunk/ELF/Error.h (original)
+++ lld/trunk/ELF/Error.h Thu Mar 3 14:45:26 2016
@@ -39,7 +39,6 @@ template <typename T> bool error(const E
LLVM_ATTRIBUTE_NORETURN void fatal(const Twine &Msg);
LLVM_ATTRIBUTE_NORETURN void fatal(const Twine &Msg, const Twine &Prefix);
-void fatal(std::error_code EC, const Twine &Prefix);
void fatal(std::error_code EC);
template <class T> T fatal(ErrorOr<T> EO) {
More information about the llvm-commits
mailing list