<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Add Orc Error Handling"
href="http://llvm.org/bugs/show_bug.cgi?id=22612">22612</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Add Orc Error Handling
</td>
</tr>
<tr>
<th>Product</th>
<td>libraries
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Other
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>OrcJIT
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>lhames@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>There's currently no way for Orc to report errors to the user.
We sould add a JITErrorLog class and make sure a reference to it is available
in each layer. Straw man implementation:
class JITErrorLog {
public:
void addError(std::string ErrMsg) { Errors.push_back(std::move(ErrMsg); }
bool allOk() const { return Errors.empty(); }
void reset() { Errors.clear(); }
private:
std::vector<std::string> Errors;
};
More information can be added as required.
Possible gotchas: We want Orc to run multi-threaded day, but we don't want
cross-talk between threads. Syncronisation and extra support will be required
to ensure that errors are reported and responded to on the appropriate thread.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>