LLVM: lib/DWARFLinker/Parallel/DWARFLinkerGlobalData.h Source File (original) (raw)

1

2

3

4

5

6

7

8

9#ifndef LLVM_LIB_DWARFLINKER_PARALLEL_DWARFLINKERGLOBALDATA_H

10#define LLVM_LIB_DWARFLINKER_PARALLEL_DWARFLINKERGLOBALDATA_H

11

16

17namespace llvm {

18

20

23

26

27

29

31

32

34

35

37

38

40

41

43

44

46

47

48

50

51

53

54

56

57

59

60

62

63

65 nullptr;

66

67

68

69

70

71

72

73

75

76

77

78

80};

81

83

84

86 friend DWARFLinkerImpl;

87

88public:

89

93

94

96

97

99

100

102

103

105

106

112

113

119

120

126

127

133

134

138

139

140 std::optional<std::reference_wrapper> getTargetTriple() {

143

144 return std::nullopt;

145 }

146

147protected:

153

154

155

157};

158

159}

160}

161}

162

163#endif

Analysis containing CSE Info

A structured debug information entry.

Utility class that carries the DWARF compile/type unit and the debug info entry in an object.

Base class for error info classes.

Lightweight error class with error context and mandatory checking.

This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small.

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

Triple - Helper class for working with autoconf configuration names.

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

std::map< std::string, std::string > ObjectPrefixMapTy

std::map< std::string, std::string > SwiftInterfacesMapTy

std::function< void(const DWARFFile &File, llvm::StringRef Output)> InputVerificationHandlerTy

This class links debug info.

This class keeps data and services common for the whole linking process.

Definition DWARFLinkerGlobalData.h:85

StringPool Strings

Definition DWARFLinkerGlobalData.h:149

DWARFLinkerOptions Options

Definition DWARFLinkerGlobalData.h:150

void warn(const Twine &Warning, StringRef Context, const DWARFDie *DIE=nullptr)

Report warning.

Definition DWARFLinkerGlobalData.h:107

const DWARFLinkerOptions & getOptions() const

Returns linking options.

Definition DWARFLinkerGlobalData.h:98

void warn(Error Warning, StringRef Context, const DWARFDie *DIE=nullptr)

Report warning.

Definition DWARFLinkerGlobalData.h:114

void setErrorHandler(MessageHandlerTy Handler)

Set error handler.

Definition DWARFLinkerGlobalData.h:104

void error(const Twine &Err, StringRef Context, const DWARFDie *DIE=nullptr)

Report error.

Definition DWARFLinkerGlobalData.h:121

llvm::parallel::PerThreadBumpPtrAllocator Allocator

Definition DWARFLinkerGlobalData.h:148

std::optional< Triple > TargetTriple

Triple for output data.

Definition DWARFLinkerGlobalData.h:156

void setTargetTriple(const Triple &TargetTriple)

Set target triple.

Definition DWARFLinkerGlobalData.h:135

void error(Error Err, StringRef Context, const DWARFDie *DIE=nullptr)

Report error.

Definition DWARFLinkerGlobalData.h:128

void setWarningHandler(MessageHandlerTy Handler)

Set warning handler.

Definition DWARFLinkerGlobalData.h:101

StringPool & getStringPool()

Returns global string pool.

Definition DWARFLinkerGlobalData.h:95

MessageHandlerTy WarningHandler

Definition DWARFLinkerGlobalData.h:151

std::optional< std::reference_wrapper< const Triple > > getTargetTriple()

Optionally return target triple.

Definition DWARFLinkerGlobalData.h:140

MessageHandlerTy ErrorHandler

Definition DWARFLinkerGlobalData.h:152

llvm::parallel::PerThreadBumpPtrAllocator & getAllocator()

Returns global per-thread allocator.

Definition DWARFLinkerGlobalData.h:90

std::function< void( const Twine &Warning, StringRef Context, const DWARFDie *DIE)> MessageHandlerTy

Definition DWARFLinkerGlobalData.h:24

PerThreadAllocator< BumpPtrAllocator > PerThreadBumpPtrAllocator

This is an optimization pass for GlobalISel generic memory operations.

void handleAllErrors(Error E, HandlerTs &&... Handlers)

Behaves the same as handleErrors, except that by contract all errors must be handled by the given han...

linking options

Definition DWARFLinkerGlobalData.h:28

bool KeepFunctionForStatic

Whether we want a static variable to force us to keep its enclosing function.

Definition DWARFLinkerGlobalData.h:49

DWARFLinkerBase::ObjectPrefixMapTy * ObjectPrefixMap

A list of remappings to apply to file paths.

Definition DWARFLinkerGlobalData.h:79

bool Verbose

Generate processing log to the standard output.

Definition DWARFLinkerGlobalData.h:33

DWARFLinkerBase::SwiftInterfacesMapTy * ParseableSwiftInterfaces

A list of all .swiftinterface files referenced by the debug info, mapping Module name to path on disk...

Definition DWARFLinkerGlobalData.h:74

SmallVector< DWARFLinkerBase::AccelTableKind, 1 > AccelTables

The accelerator table kinds.

Definition DWARFLinkerGlobalData.h:58

uint16_t TargetDWARFVersion

DWARF version for the output.

Definition DWARFLinkerGlobalData.h:30

bool NoODR

Do not unique types according to ODR.

Definition DWARFLinkerGlobalData.h:42

bool AllowNonDeterministicOutput

Allow to generate valid, but non deterministic output.

Definition DWARFLinkerGlobalData.h:52

std::string PrependPath

Prepend path for the clang modules.

Definition DWARFLinkerGlobalData.h:61

bool VerifyInputDWARF

Verify the input DWARF.

Definition DWARFLinkerGlobalData.h:39

bool UpdateIndexTablesOnly

Update index tables.

Definition DWARFLinkerGlobalData.h:45

bool Statistics

Print statistics.

Definition DWARFLinkerGlobalData.h:36

unsigned Threads

Number of threads.

Definition DWARFLinkerGlobalData.h:55

DWARFLinkerBase::InputVerificationHandlerTy InputVerificationHandler

input verification handler(it might be called asynchronously).

Definition DWARFLinkerGlobalData.h:64