LLVM
7.0.0
include
llvm
DebugInfo
PDB
Native
RawError.h
Go to the documentation of this file.
1
//===- RawError.h - Error extensions for raw PDB implementation -*- 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_RAW_RAWERROR_H
11
#define LLVM_DEBUGINFO_PDB_RAW_RAWERROR_H
12
13
#include "
llvm/Support/Error.h
"
14
15
#include <string>
16
17
namespace
llvm
{
18
namespace
pdb {
19
enum class
raw_error_code
{
20
unspecified
= 1,
21
feature_unsupported
,
22
invalid_format
,
23
corrupt_file
,
24
insufficient_buffer
,
25
no_stream
,
26
index_out_of_bounds
,
27
invalid_block_address
,
28
duplicate_entry
,
29
no_entry
,
30
not_writable
,
31
stream_too_long
,
32
invalid_tpi_hash
,
33
};
34
35
/// Base class for errors originating when parsing raw PDB files
36
class
RawError
:
public
ErrorInfo
<RawError> {
37
public
:
38
static
char
ID
;
39
RawError
(
raw_error_code
C
);
40
RawError
(
const
std::string &
Context
);
41
RawError
(
raw_error_code
C
,
const
std::string &
Context
);
42
43
void
log(
raw_ostream
&OS)
const override
;
44
const
std::string &getErrorMessage()
const
;
45
std::error_code convertToErrorCode()
const override
;
46
47
private
:
48
std::string ErrMsg;
49
raw_error_code
Code
;
50
};
51
}
52
}
53
#endif
C
uint64_t CallInst * C
Definition:
NVVMIntrRange.cpp:67
Context
LLVMContext & Context
Definition:
NVVMIntrRange.cpp:72
llvm
Compute iterated dominance frontiers using a linear time algorithm.
Definition:
AllocatorList.h:24
llvm::pdb::raw_error_code::index_out_of_bounds
llvm::pdb::raw_error_code::invalid_format
llvm::pdb::raw_error_code::no_stream
llvm::pdb::RawError
Base class for errors originating when parsing raw PDB files.
Definition:
RawError.h:36
llvm::pdb::raw_error_code::not_writable
llvm::pdb::raw_error_code::insufficient_buffer
llvm::pdb::raw_error_code
raw_error_code
Definition:
RawError.h:19
llvm::pdb::raw_error_code::corrupt_file
llvm::pdb::raw_error_code::no_entry
llvm::pdb::raw_error_code::invalid_tpi_hash
Error.h
llvm::pdb::PDB_MemoryType::Code
llvm::pdb::raw_error_code::duplicate_entry
llvm::pdb::raw_error_code::feature_unsupported
llvm::pdb::raw_error_code::invalid_block_address
llvm::ErrorInfo
Base class for user error types.
Definition:
Error.h:340
llvm::pdb::dia_error_code::unspecified
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::pdb::RawError::ID
static char ID
Definition:
RawError.h:38
llvm::pdb::raw_error_code::stream_too_long
Generated on Thu Aug 23 2018 18:52:30 for LLVM by
1.8.13