llvm.org GIT mirror llvm / c0f33cb
Reverted 134901 because of 134959. Did not use svn merge -r but rather: 1,$s/llvm::Type::getInt\(..\)Ty(builder.getContext())/builder.getInt\1Ty()/g 1,$s/builder.getInt\(..*\)Ty()->getPointerTo()/builder.getInt\1PtrTy()/g vi sub commands (second one was not a reversion but requested by Tobias Grosser. Mod was tested, but other examples have failed to build as they are currently being thrashed with the const qualifier removal change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134985 91177308-0d34-0410-b5e6-96231b3b80d8 Garrison Venn 8 years ago
1 changed file(s) with 24 addition(s) and 24 deletion(s). Raw diff Collapse all Expand all
894894
895895 llvm::Value *cast =
896896 builder.CreatePointerCast(stringVar,
897 builder.getInt8Ty()->getPointerTo());
897 builder.getInt8PtrTy());
898898 builder.CreateCall(printFunct, cast);
899899 }
900900
938938
939939 llvm::Value *cast =
940940 builder.CreateBitCast(stringVar,
941 builder.getInt8Ty()->getPointerTo());
941 builder.getInt8PtrTy());
942942 builder.CreateCall2(&printFunct, &toPrint, cast);
943943 }
944944
986986 ourExceptionNotThrownState);
987987
988988 const llvm::PointerType *exceptionStorageType =
989 builder.getInt8Ty()->getPointerTo();
989 builder.getInt8PtrTy();
990990 *exceptionStorage =
991991 createEntryBlockAlloca(toAddTo,
992992 "exceptionStorage",
10971097 llvm::Function *toPrint32Int = module.getFunction("print32Int");
10981098
10991099 ArgTypes argTypes;
1100 argTypes.push_back(llvm::Type::getInt32Ty(builder.getContext()));
1100 argTypes.push_back(builder.getInt32Ty());
11011101
11021102 ArgNames argNames;
11031103 argNames.push_back("exceptTypeToThrow");
12381238 llvm::Function *personality = module.getFunction("ourPersonality");
12391239 llvm::Value *functPtr =
12401240 builder.CreatePointerCast(personality,
1241 builder.getInt8Ty()->getPointerTo());
1241 builder.getInt8PtrTy());
12421242
12431243 args.clear();
12441244 args.push_back(unwindException);
13751375 llvm::LLVMContext &context = module.getContext();
13761376 namedValues.clear();
13771377 ArgTypes unwindArgTypes;
1378 unwindArgTypes.push_back(llvm::Type::getInt32Ty(builder.getContext()));
1378 unwindArgTypes.push_back(builder.getInt32Ty());
13791379 ArgNames unwindArgNames;
13801380 unwindArgNames.push_back("exceptTypeToThrow");
13811381
16491649
16501650 // Create our type info type
16511651 ourTypeInfoType = llvm::StructType::get(context,
1652 TypeArray(llvm::Type::getInt32Ty(builder.getContext())));
1652 TypeArray(builder.getInt32Ty()));
16531653 // Create OurException type
16541654 ourExceptionType = llvm::StructType::get(context,
16551655 TypeArray(ourTypeInfoType));
16601660 // Does this cause problems?
16611661 ourUnwindExceptionType =
16621662 llvm::StructType::get(context,
1663 TypeArray(llvm::Type::getInt64Ty(builder.getContext())));
1663 TypeArray(builder.getInt64Ty()));
16641664
16651665 struct OurBaseException_t dummyException;
16661666
17261726 const llvm::Type *retType = builder.getVoidTy();
17271727
17281728 argTypes.clear();
1729 argTypes.push_back(llvm::Type::getInt32Ty(builder.getContext()));
1730 argTypes.push_back(builder.getInt8Ty()->getPointerTo());
1729 argTypes.push_back(builder.getInt32Ty());
1730 argTypes.push_back(builder.getInt8PtrTy());
17311731
17321732 argNames.clear();
17331733
17451745 retType = builder.getVoidTy();
17461746
17471747 argTypes.clear();
1748 argTypes.push_back(llvm::Type::getInt64Ty(builder.getContext()));
1749 argTypes.push_back(builder.getInt8Ty()->getPointerTo());
1748 argTypes.push_back(builder.getInt64Ty());
1749 argTypes.push_back(builder.getInt8PtrTy());
17501750
17511751 argNames.clear();
17521752
17641764 retType = builder.getVoidTy();
17651765
17661766 argTypes.clear();
1767 argTypes.push_back(builder.getInt8Ty()->getPointerTo());
1767 argTypes.push_back(builder.getInt8PtrTy());
17681768
17691769 argNames.clear();
17701770
17821782 retType = builder.getVoidTy();
17831783
17841784 argTypes.clear();
1785 argTypes.push_back(llvm::Type::getInt32Ty(builder.getContext()));
1785 argTypes.push_back(builder.getInt32Ty());
17861786
17871787 argNames.clear();
17881788
18001800 retType = builder.getVoidTy();
18011801
18021802 argTypes.clear();
1803 argTypes.push_back(builder.getInt8Ty()->getPointerTo());
1803 argTypes.push_back(builder.getInt8PtrTy());
18041804
18051805 argNames.clear();
18061806
18151815
18161816 // createOurException
18171817
1818 retType = builder.getInt8Ty()->getPointerTo();
1818 retType = builder.getInt8PtrTy();
18191819
18201820 argTypes.clear();
1821 argTypes.push_back(llvm::Type::getInt32Ty(builder.getContext()));
1821 argTypes.push_back(builder.getInt32Ty());
18221822
18231823 argNames.clear();
18241824
18361836 retType = builder.getInt32Ty();
18371837
18381838 argTypes.clear();
1839 argTypes.push_back(builder.getInt8Ty()->getPointerTo());
1839 argTypes.push_back(builder.getInt8PtrTy());
18401840
18411841 argNames.clear();
18421842
18561856 retType = builder.getInt32Ty();
18571857
18581858 argTypes.clear();
1859 argTypes.push_back(builder.getInt8Ty()->getPointerTo());
1859 argTypes.push_back(builder.getInt8PtrTy());
18601860
18611861 argNames.clear();
18621862
18761876 retType = builder.getInt32Ty();
18771877
18781878 argTypes.clear();
1879 argTypes.push_back(llvm::Type::getInt32Ty(builder.getContext()));
1880 argTypes.push_back(llvm::Type::getInt32Ty(builder.getContext()));
1881 argTypes.push_back(llvm::Type::getInt64Ty(builder.getContext()));
1882 argTypes.push_back(builder.getInt8Ty()->getPointerTo());
1883 argTypes.push_back(builder.getInt8Ty()->getPointerTo());
1879 argTypes.push_back(builder.getInt32Ty());
1880 argTypes.push_back(builder.getInt32Ty());
1881 argTypes.push_back(builder.getInt64Ty());
1882 argTypes.push_back(builder.getInt8PtrTy());
1883 argTypes.push_back(builder.getInt8PtrTy());
18841884
18851885 argNames.clear();
18861886