Displaying 1 result from an estimated 1 matches for "functionindexmapty".
2013 Nov 01
4
[LLVMdev] [Proposal] Adding callback mechanism to Execution Engines
...=================================================================
--- lib/ExecutionEngine/MCJIT/MCJIT.cpp (revision 193441)
+++ lib/ExecutionEngine/MCJIT/MCJIT.cpp (working copy)
@@ -39,6 +39,43 @@
extern "C" void LLVMLinkInMCJIT() {
}
+typedef std::map<std::string, void*(*)()> FunctionIndexMapTy;
+static FunctionIndexMapTy FunctionIndexMap;
+
+static FunctionIndexMapTy& GetFunctionIndexMap() {
+ return FunctionIndexMap;
+}
+
+typedef std::map<std::string, void*> ArgumentsIndexMapTy;
+static ArgumentsIndexMapTy ArgumentsIndexMap;
+
+static ArgumentsIndexMapTy& GetArgumentsIn...