klee
|
#include <Passes.h>
Inherits llvm::ModulePass.
Public Member Functions | |
FunctionAliasPass () | |
bool | runOnModule (llvm::Module &M) override |
Static Public Attributes | |
static char | ID = 0 |
Static Private Member Functions | |
static const llvm::FunctionType * | getFunctionType (const llvm::GlobalValue *gv) |
static bool | checkType (const llvm::GlobalValue *match, const llvm::GlobalValue *replacement) |
static bool | tryToReplace (llvm::GlobalValue *match, llvm::GlobalValue *replacement) |
static bool | isFunctionOrGlobalFunctionAlias (const llvm::GlobalValue *gv) |
FunctionAliasPass - Enables a user of KLEE to specify aliases to functions using -function-alias=<name|pattern>:<replacement> which are injected as GlobalAliases into the module. The replaced function is removed.
|
staticprivate |
Definition at line 145 of file FunctionAlias.cpp.
References getFunctionType(), and klee::klee_warning().
Referenced by tryToReplace().
|
staticprivate |
Definition at line 136 of file FunctionAlias.cpp.
Referenced by checkType().
|
staticprivate |
Definition at line 201 of file FunctionAlias.cpp.
References isFunctionOrGlobalFunctionAlias().
Referenced by isFunctionOrGlobalFunctionAlias(), and runOnModule().
|
override |
Definition at line 36 of file FunctionAlias.cpp.
References isFunctionOrGlobalFunctionAlias(), klee::klee_error(), klee::klee_message(), klee::klee_warning(), and tryToReplace().
|
staticprivate |
Definition at line 188 of file FunctionAlias.cpp.
References checkType().
Referenced by runOnModule().