4 #include <unordered_map> 7 #include <llvm/ExecutionEngine/ObjectCache.h> 8 #include <llvm/IR/LLVMContext.h> 13 class ExecutionEngine;
36 virtual void notifyObjectCompiled(llvm::Module
const* _module, llvm::MemoryBufferRef _object)
final override;
42 virtual std::unique_ptr<llvm::MemoryBuffer> getObject(llvm::Module
const* _module)
final override;
50 static std::unique_ptr<llvm::Module> getObject(std::string
const&
id, llvm::LLVMContext& _llvmContext);
56 static void preload(llvm::ExecutionEngine& _ee, std::unordered_map<std::string, uint64_t>& _funcCache,
57 llvm::LLVMContext& _llvmContext);
Adapted from code found on http://stackoverflow.com/questions/180947/base64-decode-snippet-in-c Origi...