clang 20.0.0 (based on r547379) from build 12806354. Bug: http://b/379133546 Test: N/A Change-Id: I2eb8938af55d809de674be63cb30cf27e801862b Upstream-Commit: ad834e67b1105d15ef907f6255d4c96e8e733f57
24 lines
537 B
C++
24 lines
537 B
C++
#ifndef LLVM_DWP_DWPERROR_H
|
|
#define LLVM_DWP_DWPERROR_H
|
|
|
|
#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;
|
|
};
|
|
} // namespace llvm
|
|
|
|
#endif // LLVM_DWP_DWPERROR_H
|