mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-11 05:35:11 +00:00
13dad4bbfc
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@269339 91177308-0d34-0410-b5e6-96231b3b80d8
18 lines
430 B
C++
18 lines
430 B
C++
#include "llvm/Support/Error.h"
|
|
#include "llvm/Support/ErrorHandling.h"
|
|
#include <string>
|
|
namespace llvm {
|
|
class DWPError : public ErrorInfo<DWPError> {
|
|
public:
|
|
DWPError(std::string Info) : Info(std::move(Info)) {}
|
|
void log(raw_ostream &OS) const override { OS << Info; }
|
|
std::error_code convertToErrorCode() const override {
|
|
llvm_unreachable("Not implemented");
|
|
}
|
|
static char ID;
|
|
|
|
private:
|
|
std::string Info;
|
|
};
|
|
}
|