blob: 0e2c8bdc0ac1995ce832343be6c280647c06b78d (
plain)
1
2
3
4
5
6
7
8
9
10
|
#include <willow/IR/Diagnostic.h>
#include <ostream>
//TODO
std::ostream &operator<<(std::ostream &os, const willow::Diagnostic &diagnostic) {
if (diagnostic.location)
return os << diagnostic.location.value() << ": " << diagnostic.message;
else
return os << "<unknown>: " << diagnostic.message;
}
|