llvm.org GIT mirror llvm / 5f07c87
Use the new interface, simplifies code git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8239 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 16 years ago
1 changed file(s) with 9 addition(s) and 14 deletion(s). Raw diff Collapse all Expand all
119119 PrintfFunc = M.getOrInsertFunction("printf", MTy);
120120
121121 // uint (sbyte*)
122 const FunctionType *hashFuncTy =
123 FunctionType::get(Type::UIntTy, vector(1, SBP), false);
124 HashPtrFunc = M.getOrInsertFunction("HashPointerToSeqNum", hashFuncTy);
122 HashPtrFunc = M.getOrInsertFunction("HashPointerToSeqNum", Type::UIntTy, SBP,
123 0);
125124
126125 // void (sbyte*)
127 const FunctionType *voidSBPFuncTy =
128 FunctionType::get(Type::VoidTy, vector(1, SBP), false);
129
130 ReleasePtrFunc = M.getOrInsertFunction("ReleasePointerSeqNum", voidSBPFuncTy);
131 RecordPtrFunc = M.getOrInsertFunction("RecordPointer", voidSBPFuncTy);
132
133 const FunctionType *voidvoidFuncTy =
134 FunctionType::get(Type::VoidTy, vector(), false);
135
136 PushOnEntryFunc = M.getOrInsertFunction("PushPointerSet", voidvoidFuncTy);
126 ReleasePtrFunc = M.getOrInsertFunction("ReleasePointerSeqNum",
127 Type::VoidTy, SBP, 0);
128 RecordPtrFunc = M.getOrInsertFunction("RecordPointer",
129 Type::VoidTy, SBP, 0);
130
131 PushOnEntryFunc = M.getOrInsertFunction("PushPointerSet", Type::VoidTy, 0);
137132 ReleaseOnReturnFunc = M.getOrInsertFunction("ReleasePointersPopSet",
138 voidvoidFuncTy);
133 Type::VoidTy, 0);
139134 }
140135
141136