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 | 8e6ac1bf102d710a76e513234fda78cd2085d88f (patch) | |
tree | 5ff4e2951ecd5b46480409dd22ef10bfdbde6577 /llvm/lib/Transforms/Instrumentation | |
parent | bd717d897fc2cb2aa0a5e9ee6f6d7f141a79fc4d (diff) | |
download | bcm5719-llvm-8e6ac1bf102d710a76e513234fda78cd2085d88f.tar.gz bcm5719-llvm-8e6ac1bf102d710a76e513234fda78cd2085d88f.zip |
Use the new interface, simplifies code
llvm-svn: 8239
Diffstat (limited to 'llvm/lib/Transforms/Instrumentation')
-rw-r--r-- | llvm/lib/Transforms/Instrumentation/TraceValues.cpp | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/TraceValues.cpp b/llvm/lib/Transforms/Instrumentation/TraceValues.cpp index ca5087a0207..375a45d69a1 100644 --- a/llvm/lib/Transforms/Instrumentation/TraceValues.cpp +++ b/llvm/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); } |