8 #ifndef RRLLVMEXCEPTION_H_
9 #define RRLLVMEXCEPTION_H_
13 #include "rrOSSpecifics.h"
19 class LLVMException :
public std::runtime_error
22 explicit LLVMException(
const std::string& what) :
23 std::runtime_error(what)
27 explicit LLVMException(
const std::string& what,
const std::string& where) :
28 std::runtime_error(what +
", at " + where)
33 #define throw_llvm_exception(what) \
35 rrLog(rr::Logger::LOG_INFORMATION) << "LLVMException, what: " \
36 << what << ", where: " << __FUNC__; \
37 throw LLVMException(what, __FUNC__); \