LLVM
15.0.0git
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
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
// See https://llvm.org/LICENSE.txt for license information.
5
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
//
7
//===----------------------------------------------------------------------===//
8
9
#ifndef LLVM_DEBUGINFO_PDB_NATIVE_RAWERROR_H
10
#define LLVM_DEBUGINFO_PDB_NATIVE_RAWERROR_H
11
12
#include "
llvm/Support/Error.h
"
13
14
namespace
llvm
{
15
namespace
pdb {
16
enum class
raw_error_code
{
17
unspecified
= 1,
18
feature_unsupported
,
19
invalid_format
,
20
corrupt_file
,
21
insufficient_buffer
,
22
no_stream
,
23
index_out_of_bounds
,
24
invalid_block_address
,
25
duplicate_entry
,
26
no_entry
,
27
not_writable
,
28
stream_too_long
,
29
invalid_tpi_hash
,
30
};
31
}
// namespace pdb
32
}
// namespace llvm
33
34
namespace
std
{
35
template
<>
36
struct
is_error_code_enum<
llvm
::
pdb::raw_error_code
> : std::true_type {};
37
}
// namespace std
38
39
namespace
llvm
{
40
namespace
pdb {
41
const
std::error_category
&
RawErrCategory
();
42
43
inline
std::error_code
make_error_code
(
raw_error_code
E
) {
44
return
std::error_code(
static_cast<
int
>
(
E
),
RawErrCategory
());
45
}
46
47
/// Base class for errors originating when parsing raw PDB files
48
class
RawError
:
public
ErrorInfo
<RawError, StringError> {
49
public
:
50
using
ErrorInfo<RawError, StringError>::ErrorInfo
;
// inherit constructors
51
RawError
(
const
Twine
&
S
) :
ErrorInfo
(
S
,
raw_error_code
::unspecified) {}
52
static
char
ID
;
53
};
54
}
// namespace pdb
55
}
// namespace llvm
56
#endif
llvm::pdb::raw_error_code::no_stream
@ no_stream
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition:
AddressRanges.h:17
llvm::pdb::RawError
Base class for errors originating when parsing raw PDB files.
Definition:
RawError.h:48
llvm::pdb::RawErrCategory
const std::error_category & RawErrCategory()
Definition:
RawError.cpp:51
llvm::pdb::raw_error_code::index_out_of_bounds
@ index_out_of_bounds
Error.h
llvm::pdb::RawError::RawError
RawError(const Twine &S)
Definition:
RawError.h:51
llvm::pdb::raw_error_code::invalid_format
@ invalid_format
llvm::pdb::raw_error_code
raw_error_code
Definition:
RawError.h:16
llvm::pdb::raw_error_code::corrupt_file
@ corrupt_file
E
static GCRegistry::Add< CoreCLRGC > E("coreclr", "CoreCLR-compatible GC")
llvm::pdb::raw_error_code::unspecified
@ unspecified
llvm::pdb::raw_error_code::invalid_block_address
@ invalid_block_address
llvm::pdb::RawError::ID
static char ID
Definition:
RawError.h:52
llvm::pdb::make_error_code
std::error_code make_error_code(dia_error_code E)
Definition:
DIAError.h:37
llvm::pdb::raw_error_code::feature_unsupported
@ feature_unsupported
llvm::ErrorInfo
Base class for user error types.
Definition:
Error.h:347
S
add sub stmia L5 ldr r0 bl L_printf $stub Instead of a and a wouldn t it be better to do three moves *Return an aggregate type is even return S
Definition:
README.txt:210
llvm::Twine
Twine - A lightweight data structure for efficiently representing the concatenation of temporary valu...
Definition:
Twine.h:83
std
Definition:
BitVector.h:851
llvm::pdb::raw_error_code::not_writable
@ not_writable
llvm::pdb::raw_error_code::invalid_tpi_hash
@ invalid_tpi_hash
llvm::pdb::raw_error_code::insufficient_buffer
@ insufficient_buffer
llvm::pdb::raw_error_code::no_entry
@ no_entry
llvm::pdb::raw_error_code::stream_too_long
@ stream_too_long
llvm::pdb::raw_error_code::duplicate_entry
@ duplicate_entry
error_category
static ManagedStatic< _object_error_category > error_category
Definition:
Error.cpp:76
Generated on Thu May 19 2022 14:35:21 for LLVM by
1.8.17