LLVM
8.0.1
|
The basic entity representing a rewrite operation. More...
#include "llvm/Transforms/Utils/SymbolRewriter.h"
Public Types | |
enum | Type { Type::Invalid, Type::Function, Type::GlobalVariable, Type::NamedAlias } |
Public Member Functions | |
RewriteDescriptor (const RewriteDescriptor &)=delete | |
RewriteDescriptor & | operator= (const RewriteDescriptor &)=delete |
virtual | ~RewriteDescriptor ()=default |
Type | getType () const |
virtual bool | performOnModule (Module &M)=0 |
Protected Member Functions | |
RewriteDescriptor (Type T) | |
The basic entity representing a rewrite operation.
It serves as the base class for any rewrite descriptor. It has a certain set of specializations which describe a particular rewrite.
The RewriteMapParser can be used to parse a mapping file that provides the mapping for rewriting the symbols. The descriptors individually describe whether to rewrite a function, global variable, or global alias. Each of these can be selected either by explicitly providing a name for the ones to be rewritten or providing a (posix compatible) regular expression that will select the symbols to rewrite. This descriptor list is passed to the SymbolRewriter pass.
Definition at line 69 of file SymbolRewriter.h.
|
strong |
Enumerator | |
---|---|
Invalid | |
Function | invalid |
GlobalVariable | function - descriptor rewrites a function |
NamedAlias | global variable - descriptor rewrites a global variable |
Definition at line 71 of file SymbolRewriter.h.
|
delete |
|
virtualdefault |
|
inlineexplicitprotected |
Definition at line 87 of file SymbolRewriter.h.
References Kind.
|
inline |
|
delete |