diff options
Diffstat (limited to 'ELF/Error.cpp')
-rw-r--r-- | ELF/Error.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ELF/Error.cpp b/ELF/Error.cpp index 6e30f08143ed..d9b41f9c599e 100644 --- a/ELF/Error.cpp +++ b/ELF/Error.cpp @@ -103,4 +103,8 @@ void elf::fatal(std::error_code EC, const Twine &Prefix) { fatal(Prefix + ": " + EC.message()); } +void elf::fatal(Error &E, const Twine &Prefix) { + fatal(Prefix + ": " + llvm::toString(std::move(E))); +} + } // namespace lld |