|
LLVM
4.0.0
|
The basic entity representing a rewrite operation. More...
#include <SymbolRewriter.h>
Public Types | |
| enum | Type { Type::Invalid, Type::Function, Type::GlobalVariable, Type::NamedAlias } |
Public Member Functions | |
| virtual | ~RewriteDescriptor () |
| 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 62 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 69 of file SymbolRewriter.h.
|
inlinevirtual |
Definition at line 76 of file SymbolRewriter.h.
|
inlineexplicitprotected |
Definition at line 83 of file SymbolRewriter.h.
|
inline |
Definition at line 78 of file SymbolRewriter.h.
1.8.6