Implementation of path profiling.
[oota-llvm.git] / include / llvm / Analysis / MemoryBuiltins.h
index f6fa0c8d1e7725674bee9395777e03a64e28cd67..22493f6f8b9efa417f15d661c96b246d2fedaf2a 100644 (file)
@@ -72,8 +72,12 @@ Value *getMallocArraySize(CallInst *CI, const TargetData *TD,
 //  free Call Utility Functions.
 //
 
-/// isFreeCall - Returns true if the the value is a call to the builtin free()
-bool isFreeCall(const Value *I);
+/// isFreeCall - Returns non-null if the value is a call to the builtin free()
+const CallInst *isFreeCall(const Value *I);
+  
+static inline CallInst *isFreeCall(Value *I) {
+  return const_cast<CallInst*>(isFreeCall((const Value*)I));
+}
 
 } // End llvm namespace