Lines Matching defs:Mod
26 Module* Mod = new Module("test-mem", getGlobalContext());
29 FunctionType::get(Type::getVoidTy(Mod->getContext()), false);
31 "func", Mod);
33 BasicBlock* Entry = BasicBlock::Create(Mod->getContext(), "entry", Func);
34 new UnreachableInst(Mod->getContext(), Entry);
36 BasicBlock* BB = BasicBlock::Create(Mod->getContext(), "bb", Func);
37 new UnreachableInst(Mod->getContext(), BB);
39 PointerType* Int8Ptr = Type::getInt8PtrTy(Mod->getContext());
40 new GlobalVariable(*Mod, Int8Ptr, /*isConstant=*/true,
44 return Mod;
48 OwningPtr<Module> Mod(makeLLVMModule());
50 WriteBitcodeToFile(Mod.get(), OS);