diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2017-01-14 15:39:25 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2017-01-14 15:39:25 +0000 |
commit | 1eafc0458f4bb4547fe78c62b78312ad4f719c38 (patch) | |
tree | db247ebc1d3d05750e31ef4b162cf9ab4af9ddef /ELF/Error.cpp | |
parent | b047fead11133644be3dbae34b85be39ce2819e9 (diff) |
Notes
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 |