[llvm-commits] [PATCH] Replace all uses of std::string* for errors with error_code in Support/MemoryBuffer.
Michael Spencer
bigcheesegs at gmail.com
Tue Dec 7 13:23:44 PST 2010
The two attached patches replace all uses of std::string* for error
handling with error_code in Support/MemoryBuffer and updates clients
to use them.
This will break other projects that use MemoryBuffer directly, but the
conversion is easy. Just use error_code::message(). This will actually
return exactly the same thing for all except one error message, which
now produces a more accurate one.
- Michael Spencer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clang-MemoryBuffer-std-string-error_code.patch
Type: application/octet-stream
Size: 8027 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20101207/901b597a/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: llvm-MemoryBuffer-std-string-error_code.patch
Type: application/octet-stream
Size: 28075 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20101207/901b597a/attachment-0001.obj>
More information about the llvm-commits
mailing list