<div dir="ltr">LGTM. Thank you for doing this.</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jun 13, 2014 at 8:36 AM, Rafael Espindola <span dir="ltr"><<a href="mailto:rafael.espindola@gmail.com" target="_blank">rafael.espindola@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: rafael<br>
Date: Fri Jun 13 10:36:45 2014<br>
New Revision: 210913<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=210913&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=210913&view=rev</a><br>
Log:<br>
Remove unused and odd code.<br>
<br>
This code was never being used and any use of it would look fairly strange.<br>
For example, it would try to map a NativeReaderError::file_malformed to<br>
std::errc::invalid_argument.<br>
<br>
Modified:<br>
lld/trunk/lib/Core/Error.cpp<br>
<br>
Modified: lld/trunk/lib/Core/Error.cpp<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/lld/trunk/lib/Core/Error.cpp?rev=210913&r1=210912&r2=210913&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/lld/trunk/lib/Core/Error.cpp?rev=210913&r1=210912&r2=210913&view=diff</a><br>
==============================================================================<br>
--- lld/trunk/lib/Core/Error.cpp (original)<br>
+++ lld/trunk/lib/Core/Error.cpp Fri Jun 13 10:36:45 2014<br>
@@ -40,13 +40,6 @@ public:<br>
llvm_unreachable("An enumerator of NativeReaderError does not have a "<br>
"message defined.");<br>
}<br>
-<br>
- std::error_condition<br>
- default_error_condition(int ev) const LLVM_NOEXCEPT override {<br>
- if (NativeReaderError(ev) == NativeReaderError::success)<br>
- return std::error_condition();<br>
- return std::errc::invalid_argument;<br>
- }<br>
};<br>
<br>
const std::error_category &lld::native_reader_category() {<br>
@@ -70,13 +63,6 @@ public:<br>
llvm_unreachable("An enumerator of YamlReaderError does not have a "<br>
"message defined.");<br>
}<br>
-<br>
- std::error_condition<br>
- default_error_condition(int ev) const LLVM_NOEXCEPT override {<br>
- if (YamlReaderError(ev) == YamlReaderError::success)<br>
- return std::error_condition();<br>
- return std::errc::invalid_argument;<br>
- }<br>
};<br>
<br>
const std::error_category &lld::YamlReaderCategory() {<br>
@@ -100,14 +86,6 @@ public:<br>
"An enumerator of LinkerScriptReaderError does not have a "<br>
"message defined.");<br>
}<br>
-<br>
- std::error_condition<br>
- default_error_condition(int ev) const LLVM_NOEXCEPT override {<br>
- LinkerScriptReaderError e = LinkerScriptReaderError(ev);<br>
- if (e == LinkerScriptReaderError::success)<br>
- return std::error_condition();<br>
- return std::errc::invalid_argument;<br>
- }<br>
};<br>
<br>
const std::error_category &lld::LinkerScriptReaderCategory() {<br>
@@ -127,13 +105,6 @@ public:<br>
llvm_unreachable("An enumerator of InputGraphError does not have a "<br>
"message defined.");<br>
}<br>
-<br>
- std::error_condition<br>
- default_error_condition(int ev) const LLVM_NOEXCEPT override {<br>
- if (InputGraphError(ev) == InputGraphError::success)<br>
- return std::error_condition();<br>
- return std::errc::invalid_argument;<br>
- }<br>
};<br>
<br>
const std::error_category &lld::InputGraphErrorCategory() {<br>
@@ -156,13 +127,6 @@ public:<br>
llvm_unreachable("An enumerator of ReaderError does not have a "<br>
"message defined.");<br>
}<br>
-<br>
- std::error_condition<br>
- default_error_condition(int ev) const LLVM_NOEXCEPT override {<br>
- if (ReaderError(ev) == ReaderError::success)<br>
- return std::error_condition();<br>
- return std::errc::invalid_argument;<br>
- }<br>
};<br>
<br>
const std::error_category &lld::ReaderErrorCategory() {<br>
<br>
<br>
_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br>
</blockquote></div><br></div>