Displaying 1 result from an estimated 1 matches for "putsarg".
Did you mean:
putsargs
2015 Mar 10
4
[LLVMdev] noob IR builder question
..., "main", module);
14 llvm::BasicBlock *entry = llvm::BasicBlock::Create(context, "entrypoint", mainFunc);
15 builder.SetInsertPoint(entry);
16
17 llvm::Value *helloWorld = builder.CreateGlobalStringPtr("hello world!\n");
18
19 std::vector<llvm::Type *> putsArgs;
20 putsArgs.push_back(builder.getInt8Ty()->getPointerTo());
21 llvm::ArrayRef<llvm::Type*> argsRef(putsArgs);
22
23 llvm::FunctionType *putsType =
24 llvm::FunctionType::get(builder.getInt32Ty(), argsRef, false);
25 llvm::Constant *putsFunc = module->getOrInsertFunction(...