From c8d0dd1bd4c903f650c90fe700848bb13d3e9057 Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Tue, 23 Mar 2010 15:50:49 +0000 Subject: [PATCH] Add comment. llvm-svn: 99284 --- llvm/include/llvm/Transforms/Utils/BuildLibCalls.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/llvm/include/llvm/Transforms/Utils/BuildLibCalls.h b/llvm/include/llvm/Transforms/Utils/BuildLibCalls.h index 9b76a37a85c3..d278672a1f02 100644 --- a/llvm/include/llvm/Transforms/Utils/BuildLibCalls.h +++ b/llvm/include/llvm/Transforms/Utils/BuildLibCalls.h @@ -49,6 +49,9 @@ namespace llvm { Value *EmitMemCpy(Value *Dst, Value *Src, Value *Len, unsigned Align, IRBuilder<> &B, const TargetData *TD); + /// EmitMemCpyChk - Emit a call to the __memcpy_chk function to the builder. + /// This expects that the Len and ObjSize have type 'intptr_t' and Dst/Src + /// are pointers. Value *EmitMemCpyChk(Value *Dst, Value *Src, Value *Len, Value *ObjSize, IRBuilder<> &B, const TargetData *TD);