LLVM  10.0.0svn
Public Types | Public Member Functions | List of all members
llvm::SymbolRemappingReader Class Reference

Reader for symbol remapping files. More...

#include "llvm/Support/SymbolRemappingReader.h"

Public Types

using Key = uintptr_t
 A Key represents an equivalence class of symbol names. More...
 

Public Member Functions

Error read (MemoryBuffer &B)
 Read remappings from the given buffer, which must live as long as the remapper. More...
 
Key insert (StringRef FunctionName)
 Construct a key for the given symbol, or return an existing one if an equivalent name has already been inserted. More...
 
Key lookup (StringRef FunctionName)
 Map the given symbol name into the key for the corresponding equivalence class. More...
 

Detailed Description

Reader for symbol remapping files.

Remaps the symbol names in profile data to match those in the program according to a set of rules specified in a given file.

Definition at line 97 of file SymbolRemappingReader.h.

Member Typedef Documentation

◆ Key

A Key represents an equivalence class of symbol names.

Definition at line 104 of file SymbolRemappingReader.h.

Member Function Documentation

◆ insert()

Key llvm::SymbolRemappingReader::insert ( StringRef  FunctionName)
inline

Construct a key for the given symbol, or return an existing one if an equivalent name has already been inserted.

The symbol name must live as long as the remapper.

The result will be Key() if the name cannot be remapped (typically because it is not a valid mangled name).

Definition at line 112 of file SymbolRemappingReader.h.

◆ lookup()

Key llvm::SymbolRemappingReader::lookup ( StringRef  FunctionName)
inline

Map the given symbol name into the key for the corresponding equivalence class.

The result will typically be Key() if no equivalent symbol has been inserted, but this is not guaranteed: a Key different from all keys ever returned by insert may be returned instead.

Definition at line 122 of file SymbolRemappingReader.h.

◆ read()

Error SymbolRemappingReader::read ( MemoryBuffer B)

The documentation for this class was generated from the following files: