Displaying 1 result from an estimated 1 matches for "utilitymodule".
2008 Jan 16
0
[LLVMdev] Cross-module function calls (code included)
...include <llvm/PassManager.h>
#include <llvm/ExecutionEngine/ExecutionEngine.h>
#include <llvm/Analysis/Verifier.h>
#include <llvm/Assembly/PrintModulePass.h>
#include <llvm/Support/LLVMBuilder.h>
using namespace llvm;
void SetupModules();
Module* mainModule;
Module* utilityModule;
Function *mainFunction;
Function *utilityFunctionPrototype;
Function *utilityFunction;
int main(int argc, char**argv)
{
ExecutionEngine *executionEngine;
SetupModules();
verifyModule(*mainModule, PrintMessageAction);
verifyModule(*utilityModule, PrintMessageAction);
PassManager PM;
PM.ad...