summaryrefslogtreecommitdiff
path: root/gnu/llvm/tools/lld/COFF/Error.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/llvm/tools/lld/COFF/Error.cpp')
-rw-r--r--gnu/llvm/tools/lld/COFF/Error.cpp33
1 files changed, 0 insertions, 33 deletions
diff --git a/gnu/llvm/tools/lld/COFF/Error.cpp b/gnu/llvm/tools/lld/COFF/Error.cpp
deleted file mode 100644
index 602a8544ce2..00000000000
--- a/gnu/llvm/tools/lld/COFF/Error.cpp
+++ /dev/null
@@ -1,33 +0,0 @@
-//===- Error.cpp ----------------------------------------------------------===//
-//
-// The LLVM Linker
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-#include "Error.h"
-
-#include "llvm/ADT/Twine.h"
-#include "llvm/Support/Error.h"
-#include "llvm/Support/raw_ostream.h"
-
-namespace lld {
-namespace coff {
-
-void fatal(const Twine &Msg) {
- llvm::errs() << Msg << "\n";
- exit(1);
-}
-
-void fatal(std::error_code EC, const Twine &Msg) {
- fatal(Msg + ": " + EC.message());
-}
-
-void fatal(llvm::Error &Err, const Twine &Msg) {
- fatal(errorToErrorCode(std::move(Err)), Msg);
-}
-
-} // namespace coff
-} // namespace lld