[llvm-commits] CVS: llvm/lib/Transforms/Instrumentation/TraceValues.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sat Aug 30 19:21:01 PDT 2003
Changes in directory llvm/lib/Transforms/Instrumentation:
TraceValues.cpp updated: 1.58 -> 1.59
---
Log message:
Use the new interface, simplifies code
---
Diffs of the changes:
Index: llvm/lib/Transforms/Instrumentation/TraceValues.cpp
diff -u llvm/lib/Transforms/Instrumentation/TraceValues.cpp:1.58 llvm/lib/Transforms/Instrumentation/TraceValues.cpp:1.59
--- llvm/lib/Transforms/Instrumentation/TraceValues.cpp:1.58 Fri Jul 11 16:57:43 2003
+++ llvm/lib/Transforms/Instrumentation/TraceValues.cpp Sat Aug 30 19:20:36 2003
@@ -120,23 +120,18 @@
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);
}
More information about the llvm-commits
mailing list