[PATCH] [LLD] COFF: Define error categories for Driver, Reader and Resolver.

Rui Ueyama ruiu at google.com
Fri May 29 10:30:18 PDT 2015


Hi rafael,

Now the errors are categorized so that you can handle them programmatically.
All uses of make_dynamic_error_code are removed.

Because we don't have error reporting mechanism, I just chose to print out
error messages to stdout, and then return an error object. Not sure if
that's the right thing to do, but at least it seems practical.

I'm not very happy about the size of Error.h and its density.
That defines only a few things but it is almost 100 lines long.
Maybe it's unavoidable?

http://reviews.llvm.org/D10129

Files:
  COFF/Chunks.cpp
  COFF/Driver.cpp
  COFF/DriverUtils.cpp
  COFF/Error.h
  COFF/InputFiles.cpp
  COFF/SymbolTable.cpp
  COFF/Symbols.cpp
  COFF/Writer.cpp

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D10129.26794.patch
Type: text/x-patch
Size: 13835 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150529/c5354b83/attachment.bin>


More information about the llvm-commits mailing list