60 #ifndef LLVM_SUPPORT_SYMBOLREMAPPINGREADER_H 61 #define LLVM_SUPPORT_SYMBOLREMAPPINGREADER_H 73 : File(File), Line(Line), Message(Message.str()) {}
76 OS << File <<
':' << Line <<
": " << Message;
114 return Canonicalizer.canonicalize(FunctionName);
124 return Canonicalizer.lookup(FunctionName);
133 #endif // LLVM_SUPPORT_SYMBOLREMAPPINGREADER_H This class represents lattice values for constants.
Key insert(StringRef FunctionName)
Construct a key for the given symbol, or return an existing one if an equivalent name has already bee...
Key lookup(StringRef FunctionName)
Map the given symbol name into the key for the corresponding equivalence class.
SymbolRemappingParseError(StringRef File, int64_t Line, Twine Message)
Twine - A lightweight data structure for efficiently representing the concatenation of temporary valu...
StringRef getMessage() const
StringRef getFileName() const
uintptr_t Key
A Key represents an equivalence class of symbol names.
int64_t getLineNum() const
static GCRegistry::Add< OcamlGC > B("ocaml", "ocaml 3.10-compatible GC")
void log(llvm::raw_ostream &OS) const override
Print an error message to an output stream.
Canonicalizer for mangled names.
This interface provides simple read-only access to a block of memory, and provides simple methods for...
Base class for user error types.
Reader for symbol remapping files.
value_type read(const void *memory, endianness endian)
Read a value of a particular endianness from memory.
std::error_code convertToErrorCode() const override
Convert this error to a std::error_code.
Lightweight error class with error context and mandatory checking.
This class implements an extremely fast bulk output stream that can only output to a stream...
StringRef - Represent a constant reference to a string, i.e.
std::error_code inconvertibleErrorCode()
The value returned by this function can be returned from convertToErrorCode for Error values where no...