1 //===- CodeViewError.h - Error extensions for CodeView ----------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef LLVM_DEBUGINFO_PDB_CODEVIEW_CODEVIEWERROR_H
11 #define LLVM_DEBUGINFO_PDB_CODEVIEW_CODEVIEWERROR_H
13 #include "llvm/Support/Error.h"
19 enum class cv_error_code {
22 operation_unsupported,
25 unknown_member_record,
28 /// Base class for errors originating when parsing raw PDB files
29 class CodeViewError : public ErrorInfo<CodeViewError> {
32 CodeViewError(cv_error_code C);
33 CodeViewError(const std::string &Context);
34 CodeViewError(cv_error_code C, const std::string &Context);
36 void log(raw_ostream &OS) const override;
37 const std::string &getErrorMessage() const;
38 std::error_code convertToErrorCode() const override;