Add make_dynamic_error_code().
authorNick Kledzik <kledzik@apple.com>
Tue, 27 May 2014 19:35:41 +0000 (19:35 +0000)
committerNick Kledzik <kledzik@apple.com>
Tue, 27 May 2014 19:35:41 +0000 (19:35 +0000)
commit181ce5ee037c0ec227708d083b92202960d5ad69
tree9ec730e6c8776a9c0160e5bdcaac77deae02cb9c
parentb85f0080e7c8188a998fb08b05944572f7b39b9e
Add make_dynamic_error_code().

This is a short-term fix to allow lld Readers to return error messages
with dynamic content.

The long term fix will be to enhance ErrorOr<> to work with errors other
than error_code.  Or to change the interface to Readers to pass down a
diagnostics object through which all error messages are written.

llvm-svn: 209681
lld/include/lld/Core/Error.h
lld/lib/Core/Error.cpp
lld/lib/ReaderWriter/MachO/MachONormalizedFileToAtoms.cpp