Lines Matching refs:Safe
694 std::unique_ptr<Module> Safe, std::string &Error) {
706 BD, std::move(Optimized), std::move(Safe), Error, Broken);
763 Module *Safe) {
770 // First, if the main function is in the Safe module, we must add a stub to
773 if (Function *oldMain = Safe->getFunction("main"))
796 BasicBlock *BB = BasicBlock::Create(Safe->getContext(), "entry", newMain);
800 ReturnInst::Create(Safe->getContext(), call, BB);
803 // The second nasty issue we must deal with in the JIT is that the Safe
808 // Add the resolver to the Safe module.
811 Safe->getOrInsertFunction("getPointerToNamedFunction",
812 Type::getInt8PtrTy(Safe->getContext()),
813 Type::getInt8PtrTy(Safe->getContext()),
817 for (Module::iterator F = Safe->begin(), E = Safe->end(); F != E; ++F) {
828 new GlobalVariable(*Safe, InitArray->getType(), true /*isConstant*/,
915 if (verifyModule(*Test) || verifyModule(*Safe)) {
926 std::unique_ptr<Module> Safe,
928 CleanupAndPrepareModules(BD, Test, Safe.get());
958 if (BD.writeProgramToFile(SafeModuleBC.str(), SafeModuleFD, Safe.get())) {