LLVM: include/llvm/Support/VirtualOutputError.h Source File (original) (raw)

1

2

3

4

5

6

7

8

9

10

11

12

13

14#ifndef LLVM_SUPPORT_VIRTUALOUTPUTERROR_H

15#define LLVM_SUPPORT_VIRTUALOUTPUTERROR_H

16

19

21

23

31

35

36

37

39 void anchor() override;

40

41public:

44

45

47

50 assert(EC && "Cannot create OutputError from success EC");

51 }

52

55 OutputPath(OutputPath.str()) {

56 assert(EC && "Cannot create OutputError from success EC");

57 }

58

59private:

60 std::string OutputPath;

61};

62

63

64

70

71

72

74 void anchor() override;

75

76public:

79

80

81 static char ID;

82

87

88private:

90};

91

92

93

95 void anchor() override;

96

97public:

100

101

103

105 std::error_code EC)

107 TempPath(TempPath.str()) {}

108

112 TempPath(TempPath.str()) {}

113

114private:

115 std::string TempPath;

116};

117

118

119

121 const Twine &OutputPath,

122 std::error_code EC) {

123 if (EC)

126}

127

128}

129

130#endif

assert(UImm &&(UImm !=~static_cast< T >(0)) &&"Invalid immediate!")

This file contains the declarations of the OutputConfig class.

Base class for user error types.

Lightweight error class with error context and mandatory checking.

static ErrorSuccess success()

Create a success value.

StringRef - Represent a constant reference to a string, i.e.

Twine - A lightweight data structure for efficiently representing the concatenation of temporary valu...

This class implements an extremely fast bulk output stream that can only output to a stream.

static char ID

Definition VirtualOutputError.h:81

void log(raw_ostream &OS) const override

OutputConfig getConfig() const

Definition VirtualOutputError.h:77

OutputConfigError(OutputConfig Config, const Twine &OutputPath)

Definition VirtualOutputError.h:83

Error related to an OutputFile.

Definition VirtualOutputError.h:38

StringRef getOutputPath() const

Definition VirtualOutputError.h:42

void log(raw_ostream &OS) const override

Print an error message to an output stream.

OutputError(const Twine &OutputPath, std::error_code EC)

Definition VirtualOutputError.h:48

OutputError(const Twine &OutputPath, OutputErrorCode EV)

Definition VirtualOutputError.h:53

static LLVM_ABI char ID

Definition VirtualOutputError.h:46

void log(raw_ostream &OS) const override

TempFileOutputError(const Twine &TempPath, const Twine &OutputPath, std::error_code EC)

Definition VirtualOutputError.h:104

StringRef getTempPath() const

Definition VirtualOutputError.h:98

TempFileOutputError(const Twine &TempPath, const Twine &OutputPath, OutputErrorCode EV)

Definition VirtualOutputError.h:109

static LLVM_ABI char ID

Definition VirtualOutputError.h:102

Error convertToOutputError(const Twine &OutputPath, std::error_code EC)

Return Error::success() or use OutputPath to create an OutputError, depending on EC.

Definition VirtualOutputError.h:65

std::error_code make_error_code(OutputErrorCode EV)

Definition VirtualOutputError.h:32

OutputErrorCode

Definition VirtualOutputError.h:24

@ already_closed

Definition VirtualOutputError.h:28

@ invalid_config

Definition VirtualOutputError.h:27

@ not_closed

Definition VirtualOutputError.h:26

@ has_open_proxy

Definition VirtualOutputError.h:29

const std::error_category & output_category()

Error convertToTempFileOutputError(const Twine &TempPath, const Twine &OutputPath, std::error_code EC)

Return Error::success() or use TempPath and OutputPath to create a TempFileOutputError,...

Definition VirtualOutputError.h:120

Error make_error(ArgTs &&... Args)

Make a Error instance representing failure using the given error info type.

Full configuration for an output for use by the OutputBackend.