|
@@ -228,6 +228,17 @@ public:
|
|
virtual GenericValue runFunction(Function *F,
|
|
virtual GenericValue runFunction(Function *F,
|
|
const std::vector<GenericValue> &ArgValues) = 0;
|
|
const std::vector<GenericValue> &ArgValues) = 0;
|
|
|
|
|
|
|
|
+ /// getPointerToNamedFunction - This method returns the address of the
|
|
|
|
+ /// specified function by using the dlsym function call. As such it is only
|
|
|
|
+ /// useful for resolving library symbols, not code generated symbols.
|
|
|
|
+ ///
|
|
|
|
+ /// If AbortOnFailure is false and no function with the given name is
|
|
|
|
+ /// found, this function silently returns a null pointer. Otherwise,
|
|
|
|
+ /// it prints a message to stderr and aborts.
|
|
|
|
+ ///
|
|
|
|
+ virtual void *getPointerToNamedFunction(const std::string &Name,
|
|
|
|
+ bool AbortOnFailure = true) = 0;
|
|
|
|
+
|
|
/// runStaticConstructorsDestructors - This method is used to execute all of
|
|
/// runStaticConstructorsDestructors - This method is used to execute all of
|
|
/// the static constructors or destructors for a program.
|
|
/// the static constructors or destructors for a program.
|
|
///
|
|
///
|