From b321fb5d3d6b3c2855c2fcc049c6f3b8fb13a7a8 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 15 Feb 2019 22:24:54 +0100 Subject: WIP: Port to LLVM7 --- src/resp.hpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/resp.hpp') diff --git a/src/resp.hpp b/src/resp.hpp index 9179b16..892ba13 100644 --- a/src/resp.hpp +++ b/src/resp.hpp @@ -38,7 +38,7 @@ #include -#define THROW_IF(cond, error, ...) { if (cond) throw Error(error, __VA_ARGS__); } +#define THROW_IF(cond, error, ...) { if (cond) throw RespError(error, __VA_ARGS__); } using namespace std; using boost::format; @@ -58,8 +58,8 @@ struct Cursor { }; /// Compilation error -struct Error { - Error(Cursor c, const string& m) : loc(c), msg(m) {} +struct RespError { + RespError(Cursor c, const string& m) : loc(c), msg(m) {} const string what() const { return (loc ? loc.str() + ": " : "") + "error: " + msg; } const Cursor loc; const string msg; @@ -545,7 +545,7 @@ struct PEnv : private map { } } - const AST* parse(Cursor& cur, std::istream& in) throw(Error); + const AST* parse(Cursor& cur, std::istream& in); const AST* expand(const AST* exp); typedef std::set Primitives; @@ -931,7 +931,7 @@ int repl(CEnv& cenv); const AST* resp_cps(CEnv& cenv, const AST* ast, const AST* k) throw(); -void resp_constrain(TEnv& tenv, Constraints& c, const AST* ast) throw(Error); +void resp_constrain(TEnv& tenv, Constraints& c, const AST* ast); typedef const AST* (RespPass)(CEnv& cenv, Code& code, const AST* ast); -- cgit v1.2.1