LLVM
7.0.0
include
llvm
DebugInfo
PDB
GenericError.h
Go to the documentation of this file.
1
//===- Error.h - system_error extensions for PDB ----------------*- 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_ERROR_H
11
#define LLVM_DEBUGINFO_PDB_ERROR_H
12
13
#include "
llvm/ADT/StringRef.h
"
14
#include "
llvm/Support/Error.h
"
15
16
namespace
llvm
{
17
namespace
pdb {
18
19
enum class
generic_error_code
{
20
invalid_path
= 1,
21
dia_sdk_not_present
,
22
type_server_not_found
,
23
unspecified
,
24
};
25
26
/// Base class for errors originating when parsing raw PDB files
27
class
GenericError
:
public
ErrorInfo
<GenericError> {
28
public
:
29
static
char
ID
;
30
GenericError
(
generic_error_code
C
);
31
GenericError
(
StringRef
Context
);
32
GenericError
(
generic_error_code
C
,
StringRef
Context
);
33
34
void
log(
raw_ostream
&OS)
const override
;
35
StringRef
getErrorMessage()
const
;
36
std::error_code convertToErrorCode()
const override
;
37
38
private
:
39
std::string ErrMsg;
40
generic_error_code
Code
;
41
};
42
}
43
}
44
#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::generic_error_code::type_server_not_found
Error.h
llvm::pdb::GenericError
Base class for errors originating when parsing raw PDB files.
Definition:
GenericError.h:27
llvm::pdb::PDB_MemoryType::Code
StringRef.h
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::StringRef
StringRef - Represent a constant reference to a string, i.e.
Definition:
StringRef.h:49
llvm::pdb::generic_error_code
generic_error_code
Definition:
GenericError.h:19
llvm::pdb::generic_error_code::dia_sdk_not_present
llvm::pdb::GenericError::ID
static char ID
Definition:
GenericError.h:29
llvm::pdb::generic_error_code::invalid_path
Generated on Thu Aug 23 2018 18:52:30 for LLVM by
1.8.13