LLVM
7.0.0
include
llvm
DebugInfo
CodeView
CodeViewError.h
Go to the documentation of this file.
1
//===- CodeViewError.h - Error extensions for CodeView ----------*- C++ -*-===//
2
//
3
// The LLVM Compiler Infrastructure
4
//
5
// This file is distributed under the University of Illinois Open Source
6
// License. See LICENSE.TXT for details.
7
//
8
//===----------------------------------------------------------------------===//
9
10
#ifndef LLVM_DEBUGINFO_PDB_CODEVIEW_CODEVIEWERROR_H
11
#define LLVM_DEBUGINFO_PDB_CODEVIEW_CODEVIEWERROR_H
12
13
#include "
llvm/Support/Error.h
"
14
15
#include <string>
16
17
namespace
llvm
{
18
namespace
codeview {
19
enum class
cv_error_code
{
20
unspecified
= 1,
21
insufficient_buffer
,
22
operation_unsupported
,
23
corrupt_record
,
24
no_records
,
25
unknown_member_record
,
26
};
27
28
/// Base class for errors originating when parsing raw PDB files
29
class
CodeViewError
:
public
ErrorInfo
<CodeViewError> {
30
public
:
31
static
char
ID
;
32
CodeViewError
(
cv_error_code
C
);
33
CodeViewError
(
const
std::string &
Context
);
34
CodeViewError
(
cv_error_code
C
,
const
std::string &
Context
);
35
36
void
log(
raw_ostream
&OS)
const override
;
37
const
std::string &getErrorMessage()
const
;
38
std::error_code convertToErrorCode()
const override
;
39
40
private
:
41
std::string ErrMsg;
42
cv_error_code
Code
;
43
};
44
}
45
}
46
#endif
Context
LLVMContext & Context
Definition:
NVVMIntrRange.cpp:72
llvm
Compute iterated dominance frontiers using a linear time algorithm.
Definition:
AllocatorList.h:24
llvm::codeview::cv_error_code::insufficient_buffer
llvm::codeview::cv_error_code::operation_unsupported
llvm::codeview::CodeViewError
Base class for errors originating when parsing raw PDB files.
Definition:
CodeViewError.h:29
llvm::codeview::cv_error_code
cv_error_code
Definition:
CodeViewError.h:19
llvm::codeview::cv_error_code::no_records
Error.h
llvm::codeview::CodeViewError::ID
static char ID
Definition:
CodeViewError.h:31
llvm::codeview::C
Definition:
CodeView.h:145
llvm::ErrorInfo
Base class for user error types.
Definition:
Error.h:340
llvm::codeview::cv_error_code::unknown_member_record
llvm::raw_ostream
This class implements an extremely fast bulk output stream that can only output to a stream...
Definition:
raw_ostream.h:46
llvm::codeview::cv_error_code::unspecified
llvm::codeview::cv_error_code::corrupt_record
llvm::codeview::PublicSymFlags::Code
Generated on Thu Aug 23 2018 18:52:27 for LLVM by
1.8.13