parent
bd717d897f
commit
8e6ac1bf10
|
@ -120,23 +120,18 @@ void ExternalFuncs::doInitialization(Module &M) {
|
||||||
PrintfFunc = M.getOrInsertFunction("printf", MTy);
|
PrintfFunc = M.getOrInsertFunction("printf", MTy);
|
||||||
|
|
||||||
// uint (sbyte*)
|
// uint (sbyte*)
|
||||||
const FunctionType *hashFuncTy =
|
HashPtrFunc = M.getOrInsertFunction("HashPointerToSeqNum", Type::UIntTy, SBP,
|
||||||
FunctionType::get(Type::UIntTy, vector<const Type*>(1, SBP), false);
|
0);
|
||||||
HashPtrFunc = M.getOrInsertFunction("HashPointerToSeqNum", hashFuncTy);
|
|
||||||
|
|
||||||
// void (sbyte*)
|
// void (sbyte*)
|
||||||
const FunctionType *voidSBPFuncTy =
|
ReleasePtrFunc = M.getOrInsertFunction("ReleasePointerSeqNum",
|
||||||
FunctionType::get(Type::VoidTy, vector<const Type*>(1, SBP), false);
|
Type::VoidTy, SBP, 0);
|
||||||
|
RecordPtrFunc = M.getOrInsertFunction("RecordPointer",
|
||||||
|
Type::VoidTy, SBP, 0);
|
||||||
|
|
||||||
ReleasePtrFunc = M.getOrInsertFunction("ReleasePointerSeqNum", voidSBPFuncTy);
|
PushOnEntryFunc = M.getOrInsertFunction("PushPointerSet", Type::VoidTy, 0);
|
||||||
RecordPtrFunc = M.getOrInsertFunction("RecordPointer", voidSBPFuncTy);
|
|
||||||
|
|
||||||
const FunctionType *voidvoidFuncTy =
|
|
||||||
FunctionType::get(Type::VoidTy, vector<const Type*>(), false);
|
|
||||||
|
|
||||||
PushOnEntryFunc = M.getOrInsertFunction("PushPointerSet", voidvoidFuncTy);
|
|
||||||
ReleaseOnReturnFunc = M.getOrInsertFunction("ReleasePointersPopSet",
|
ReleaseOnReturnFunc = M.getOrInsertFunction("ReleasePointersPopSet",
|
||||||
voidvoidFuncTy);
|
Type::VoidTy, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue