+
+ Constant *constArray = ConstantArray::get(ArrayType::get(Type::SByteTy,
+ sBCons.size()),
+ sBCons);
+
+ GlobalVariable *funcArray = new GlobalVariable(constArray->getType(), true,
+ GlobalValue::ExternalLinkage,
+ constArray, "llvmSimpleFunction");
+
+ M.getGlobalList().push_back(funcArray);
+
+ ConstantInt *cnst = ConstantSInt::get(Type::IntTy, counter);
+ GlobalVariable *fnCount = new GlobalVariable(Type::IntTy, true,
+ GlobalValue::ExternalLinkage,
+ cnst, "llvmFunctionCount");
+ M.getGlobalList().push_back(fnCount);