mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-30 23:20:54 +00:00
018cdc89a0
Also reference strings in the memory mapped file, reduces memory usage on a large test case by 18.5%. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@270449 91177308-0d34-0410-b5e6-96231b3b80d8
24 lines
504 B
C++
24 lines
504 B
C++
#ifndef TOOLS_LLVM_DWP_DWPERROR
|
|
#define TOOLS_LLVM_DWP_DWPERROR
|
|
|
|
#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;
|
|
};
|
|
}
|
|
|
|
#endif
|