69,70c69,70
< 					    ArgT,
< 					    /*not vararg*/false);
---
>                                             ArgT,
>                                             /*not vararg*/false);
76,78c76,78
<     Function *Add1F = new Function(Add1T, 
< 				   Function::ExternalLinkage, // maybe too much
< 				   "add1", M);
---
>     Add1F = new Function(Add1T, 
>                          Function::ExternalLinkage, // maybe too much
>                          "add1", M);
88c88,89
<     Value *ArgX = 0; // FIXME!!
---
>     assert(Add1F->abegin() != Add1F->aend()); // Make sure there's an arg
>     Argument &ArgX = Add1F->afront();  // Get the arg
90d90
<   
92,93c92,93
<     Instruction *Add = BinaryOperator::create(Instruction::Add, One, ArgX,
< 					      "addresult");
---
>     Instruction *Add = BinaryOperator::create(Instruction::Add, One, &ArgX,
>                                               "addresult");
106c106
<   Function *Foo;
---
>   Function *FooF;
112,113c112,113
< 			std::vector<const Type*>(), // no arguments
< 			/*not vararg*/false);
---
>                         std::vector<const Type*>(), // no arguments
>                         /*not vararg*/false);
117c117
<     Function *FooF = 
---
>     FooF = 
119,120c119,120
< 		   Function::ExternalLinkage, // too wide?
< 		   "foo", M);
---
>                    Function::ExternalLinkage, // too wide?
>                    "foo", M);
130c130,132
<     Instruction *Add1CallRes = 0; // FIXME!!!
---
>     std::vector<Value*> Params;
>     Params.push_back(Ten);
>     CallInst * Add1CallRes = new CallInst(FooF, Params, "foo", BB);
138,146c140,141
<   // FIXME!
< 
< 
<   // compile M module ??
<   // FIXME!
< 
<   // create Execution Engine ??
<   ModuleProvider *MP = 0;
<   ExecutionEngine *EE = ExecutionEngine::create(MP, true);
---
>   ExistingModuleProvider* MP = new ExistingModuleProvider(M);
>   ExecutionEngine* EE = ExecutionEngine::create( MP, true );
150c145
<   GenericValue gv = EE->runFunction(Foo, noargs);
---
>   GenericValue gv = EE->runFunction(FooF, noargs);
