mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-21 18:24:23 +00:00
Move checkInterfaceFunction
to ModuleUtils
Summary: Instead of making a local copy of `checkInterfaceFunction` for each sanitizer, move the function in a common place. Reviewers: kcc, samsonov Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D8775 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234220 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -20,6 +20,7 @@ class Module;
|
||||
class Function;
|
||||
class GlobalValue;
|
||||
class GlobalVariable;
|
||||
class Constant;
|
||||
template <class PtrType> class SmallPtrSetImpl;
|
||||
|
||||
/// Append F to the list of global ctors of module M with the given Priority.
|
||||
@ -36,6 +37,12 @@ void appendToGlobalDtors(Module &M, Function *F, int Priority);
|
||||
GlobalVariable *collectUsedGlobalVariables(Module &M,
|
||||
SmallPtrSetImpl<GlobalValue *> &Set,
|
||||
bool CompilerUsed);
|
||||
|
||||
// Validate the result of Module::getOrInsertFunction called for an interface
|
||||
// function of given sanitizer. If the instrumented module defines a function
|
||||
// with the same name, their prototypes must match, otherwise
|
||||
// getOrInsertFunction returns a bitcast.
|
||||
Function *checkSanitizerInterfaceFunction(Constant *FuncOrBitcast);
|
||||
} // End llvm namespace
|
||||
|
||||
#endif // LLVM_TRANSFORMS_UTILS_MODULEUTILS_H
|
||||
|
Reference in New Issue
Block a user