mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-15 05:24:01 +00:00
[MCJIT] Add a FindGlobalVariableNamed utility
Summary: This adds FindGlobalVariableNamed to ExecutionEngine (plus implementation in MCJIT), which is an analog of FindFunctionNamed for GlobalVariables. Reviewers: lhames Reviewed By: lhames Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D10421 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@240202 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -197,11 +197,16 @@ public:
|
||||
/// M is found.
|
||||
virtual bool removeModule(Module *M);
|
||||
|
||||
/// FindFunctionNamed - Search all of the active modules to find the one that
|
||||
/// FindFunctionNamed - Search all of the active modules to find the function that
|
||||
/// defines FnName. This is very slow operation and shouldn't be used for
|
||||
/// general code.
|
||||
virtual Function *FindFunctionNamed(const char *FnName);
|
||||
|
||||
/// FindGlobalVariableNamed - Search all of the active modules to find the global variable
|
||||
/// that defines Name. This is very slow operation and shouldn't be used for
|
||||
/// general code.
|
||||
virtual GlobalVariable *FindGlobalVariableNamed(const char *Name, bool AllowInternal = false);
|
||||
|
||||
/// runFunction - Execute the specified function with the specified arguments,
|
||||
/// and return the result.
|
||||
virtual GenericValue runFunction(Function *F,
|
||||
|
Reference in New Issue
Block a user