LLVM: include/llvm/ProfileData/SymbolRemappingReader.h Source File (original) (raw)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59#ifndef LLVM_PROFILEDATA_SYMBOLREMAPPINGREADER_H
60#define LLVM_PROFILEDATA_SYMBOLREMAPPINGREADER_H
61
66
67namespace llvm {
68
70
72public:
74 : File(File), Line(Line), Message(Message.str()) {}
75
77 OS << File << ':' << Line << ": " << Message;
78 }
82
86
88
89private:
90 std::string File;
91 int64_t Line;
92 std::string Message;
93};
94
95
96
97
98
100public:
101
102
104
105
107
108
109
110
111
112
113
115 return Canonicalizer.canonicalize(FunctionName);
116 }
117
118
119
120
121
122
123
125 return Canonicalizer.lookup(FunctionName);
126 }
127
128private:
130};
131
132}
133
134#endif
static GCRegistry::Add< OcamlGC > B("ocaml", "ocaml 3.10-compatible GC")
Base class for user error types.
Lightweight error class with error context and mandatory checking.
Canonicalizer for mangled names.
This interface provides simple read-only access to a block of memory, and provides simple methods for...
StringRef - Represent a constant reference to a string, i.e.
std::error_code convertToErrorCode() const override
Convert this error to a std::error_code.
Definition SymbolRemappingReader.h:79
int64_t getLineNum() const
Definition SymbolRemappingReader.h:84
StringRef getMessage() const
Definition SymbolRemappingReader.h:85
SymbolRemappingParseError(StringRef File, int64_t Line, const Twine &Message)
Definition SymbolRemappingReader.h:73
StringRef getFileName() const
Definition SymbolRemappingReader.h:83
static LLVM_ABI char ID
Definition SymbolRemappingReader.h:87
void log(llvm::raw_ostream &OS) const override
Print an error message to an output stream.
Definition SymbolRemappingReader.h:76
Reader for symbol remapping files.
Definition SymbolRemappingReader.h:99
Key insert(StringRef FunctionName)
Construct a key for the given symbol, or return an existing one if an equivalent name has already bee...
Definition SymbolRemappingReader.h:114
Key lookup(StringRef FunctionName)
Map the given symbol name into the key for the corresponding equivalence class.
Definition SymbolRemappingReader.h:124
LLVM_ABI Error read(MemoryBuffer &B)
Read remappings from the given buffer, which must live as long as the remapper.
uintptr_t Key
A Key represents an equivalence class of symbol names.
Definition SymbolRemappingReader.h:106
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.
This is an optimization pass for GlobalISel generic memory operations.
LLVM_ABI std::error_code inconvertibleErrorCode()
The value returned by this function can be returned from convertToErrorCode for Error values where no...