summaryrefslogtreecommitdiffstats
path: root/lld/lib/Core/Error.cpp
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2015-04-10 21:23:51 +0000
committerRui Ueyama <ruiu@google.com>2015-04-10 21:23:51 +0000
commitaa7b304ea7788ecd95856570c88d4ecfafeae475 (patch)
treec99cf787af61e25ed73316e612885f13755cd203 /lld/lib/Core/Error.cpp
parentbd5ae6b4de63bffdfb34cc22313c50d1a0a8260e (diff)
downloadbcm5719-llvm-aa7b304ea7788ecd95856570c88d4ecfafeae475.tar.gz
bcm5719-llvm-aa7b304ea7788ecd95856570c88d4ecfafeae475.zip
Remove the Native file format.
The Native file format was designed to be the fastest on-memory or on-disk file format for object files. The problem is that no one is working on that. No LLVM tools can produce object files in the Native, thus the feature of supporting the format is useless in the linker. This patch removes the Native file support. We can add it back if we really want it in future. llvm-svn: 234641
Diffstat (limited to 'lld/lib/Core/Error.cpp')
-rw-r--r--lld/lib/Core/Error.cpp33
1 files changed, 0 insertions, 33 deletions
diff --git a/lld/lib/Core/Error.cpp b/lld/lib/Core/Error.cpp
index 24809c3869e..e1734283f55 100644
--- a/lld/lib/Core/Error.cpp
+++ b/lld/lib/Core/Error.cpp
@@ -16,39 +16,6 @@
using namespace lld;
-class _NativeReaderErrorCategory : public std::error_category {
-public:
- const char* name() const LLVM_NOEXCEPT override {
- return "lld.native.reader";
- }
-
- std::string message(int ev) const override {
- switch (static_cast<NativeReaderError>(ev)) {
- case NativeReaderError::success:
- return "Success";
- case NativeReaderError::unknown_file_format:
- return "Unknown file format";
- case NativeReaderError::file_too_short:
- return "file truncated";
- case NativeReaderError::file_malformed:
- return "file malformed";
- case NativeReaderError::memory_error:
- return "out of memory";
- case NativeReaderError::unknown_chunk_type:
- return "unknown chunk type";
- case NativeReaderError::conflicting_target_machine:
- return "conflicting target machine";
- }
- llvm_unreachable("An enumerator of NativeReaderError does not have a "
- "message defined.");
- }
-};
-
-const std::error_category &lld::native_reader_category() {
- static _NativeReaderErrorCategory o;
- return o;
-}
-
class _YamlReaderErrorCategory : public std::error_category {
public:
const char* name() const LLVM_NOEXCEPT override {
OpenPOWER on IntegriCloud