diff options
author | Chris Lattner <sabre@nondot.org> | 2003-08-31 00:20:36 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-08-31 00:20:36 +0000 |
commit | 5f07c877b38a5914859da6c51c5064fb60a11483 (patch) | |
tree | d820103c41cff1490bbff0f816abfcf396725786 /lib/Transforms/Instrumentation/TraceValues.cpp | |
parent | 0ae8e87e53d6f500f8d01785b67c68e2046fb8e8 (diff) |
Use the new interface, simplifies code
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8239 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Instrumentation/TraceValues.cpp')
-rw-r--r-- | lib/Transforms/Instrumentation/TraceValues.cpp | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/lib/Transforms/Instrumentation/TraceValues.cpp b/lib/Transforms/Instrumentation/TraceValues.cpp index ca5087a020..375a45d69a 100644 --- a/lib/Transforms/Instrumentation/TraceValues.cpp +++ b/lib/Transforms/Instrumentation/TraceValues.cpp @@ -120,23 +120,18 @@ void ExternalFuncs::doInitialization(Module &M) { PrintfFunc = M.getOrInsertFunction("printf", MTy); // uint (sbyte*) - const FunctionType *hashFuncTy = - FunctionType::get(Type::UIntTy, vector<const Type*>(1, SBP), false); - HashPtrFunc = M.getOrInsertFunction("HashPointerToSeqNum", hashFuncTy); + HashPtrFunc = M.getOrInsertFunction("HashPointerToSeqNum", Type::UIntTy, SBP, + 0); // void (sbyte*) - const FunctionType *voidSBPFuncTy = - FunctionType::get(Type::VoidTy, vector<const Type*>(1, SBP), false); + ReleasePtrFunc = M.getOrInsertFunction("ReleasePointerSeqNum", + Type::VoidTy, SBP, 0); + RecordPtrFunc = M.getOrInsertFunction("RecordPointer", + Type::VoidTy, SBP, 0); - ReleasePtrFunc = M.getOrInsertFunction("ReleasePointerSeqNum", voidSBPFuncTy); - RecordPtrFunc = M.getOrInsertFunction("RecordPointer", voidSBPFuncTy); - - const FunctionType *voidvoidFuncTy = - FunctionType::get(Type::VoidTy, vector<const Type*>(), false); - - PushOnEntryFunc = M.getOrInsertFunction("PushPointerSet", voidvoidFuncTy); + PushOnEntryFunc = M.getOrInsertFunction("PushPointerSet", Type::VoidTy, 0); ReleaseOnReturnFunc = M.getOrInsertFunction("ReleasePointersPopSet", - voidvoidFuncTy); + Type::VoidTy, 0); } |