llvm.org GIT mirror llvm / d1c2bd8
fix some examples git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134933 91177308-0d34-0410-b5e6-96231b3b80d8 John Wiegley 8 years ago
6 changed file(s) with 11 addition(s) and 11 deletion(s). Raw diff Collapse all Expand all
5454 //Function prototypes
5555
5656 //declare void @llvm.memset.p0i8.i32(i8 *, i8, i32, i32, i1)
57 const Type *Tys[] = { Type::getInt8PtrTy(C), Type::getInt32Ty(C) };
57 Type *Tys[] = { Type::getInt8PtrTy(C), Type::getInt32Ty(C) };
5858 Function *memset_func = Intrinsic::getDeclaration(module, Intrinsic::memset,
5959 Tys, 2);
6060
399399
400400 Function *PrototypeAST::Codegen() {
401401 // Make the function type: double(double,double) etc.
402 std::vector Doubles(Args.size(),
403 Type::getDoubleTy(getGlobalContext()));
402 std::vector Doubles(Args.size(),
403 Type::getDoubleTy(getGlobalContext()));
404404 FunctionType *FT = FunctionType::get(Type::getDoubleTy(getGlobalContext()),
405405 Doubles, false);
406406
407407
408408 Function *PrototypeAST::Codegen() {
409409 // Make the function type: double(double,double) etc.
410 std::vector Doubles(Args.size(),
411 Type::getDoubleTy(getGlobalContext()));
410 std::vector Doubles(Args.size(),
411 Type::getDoubleTy(getGlobalContext()));
412412 FunctionType *FT = FunctionType::get(Type::getDoubleTy(getGlobalContext()),
413413 Doubles, false);
414414
652652
653653 Function *PrototypeAST::Codegen() {
654654 // Make the function type: double(double,double) etc.
655 std::vector Doubles(Args.size(),
656 Type::getDoubleTy(getGlobalContext()));
655 std::vector Doubles(Args.size(),
656 Type::getDoubleTy(getGlobalContext()));
657657 FunctionType *FT = FunctionType::get(Type::getDoubleTy(getGlobalContext()),
658658 Doubles, false);
659659
756756
757757 Function *PrototypeAST::Codegen() {
758758 // Make the function type: double(double,double) etc.
759 std::vector Doubles(Args.size(),
760 Type::getDoubleTy(getGlobalContext()));
759 std::vector Doubles(Args.size(),
760 Type::getDoubleTy(getGlobalContext()));
761761 FunctionType *FT = FunctionType::get(Type::getDoubleTy(getGlobalContext()),
762762 Doubles, false);
763763
904904
905905 Function *PrototypeAST::Codegen() {
906906 // Make the function type: double(double,double) etc.
907 std::vector Doubles(Args.size(),
908 Type::getDoubleTy(getGlobalContext()));
907 std::vector Doubles(Args.size(),
908 Type::getDoubleTy(getGlobalContext()));
909909 FunctionType *FT = FunctionType::get(Type::getDoubleTy(getGlobalContext()),
910910 Doubles, false);
911911