| 58 | } // namespace |
| 59 | |
| 60 | FunctionSignature::FunctionSignature(std::string base_name, DataTypeVector param_types, |
| 61 | DataTypePtr ret_type) |
| 62 | : base_name_(std::move(base_name)), |
| 63 | param_types_(std::move(param_types)), |
| 64 | ret_type_(std::move(ret_type)) { |
| 65 | DCHECK_GT(base_name_.length(), 0); |
| 66 | for (auto it = param_types_.begin(); it != param_types_.end(); it++) { |
| 67 | DCHECK(*it); |
| 68 | } |
| 69 | DCHECK(ret_type_); |
| 70 | } |
| 71 | |
| 72 | bool FunctionSignature::operator==(const FunctionSignature& other) const { |
| 73 | if (param_types_.size() != other.param_types_.size() || |