summaryrefslogtreecommitdiff
path: root/include/llvm/Transforms/Utils
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2010-03-11 19:24:34 +0000
committerEric Christopher <echristo@apple.com>2010-03-11 19:24:34 +0000
commit19888ca8b4bfcb4aabc957de3f5dce03f84da00c (patch)
treeb127a398aab6319e15ac2beedcaa9d0a61e5751e /include/llvm/Transforms/Utils
parent55282267e144a44232aa4731280d8871ba977bf2 (diff)
downloadllvm-19888ca8b4bfcb4aabc957de3f5dce03f84da00c.tar.gz
llvm-19888ca8b4bfcb4aabc957de3f5dce03f84da00c.tar.bz2
llvm-19888ca8b4bfcb4aabc957de3f5dce03f84da00c.tar.xz
Lower stpcpy_chk when possible.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98274 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Transforms/Utils')
-rw-r--r--include/llvm/Transforms/Utils/BuildLibCalls.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/Transforms/Utils/BuildLibCalls.h b/include/llvm/Transforms/Utils/BuildLibCalls.h
index 22d42ff431..f79aaf057b 100644
--- a/include/llvm/Transforms/Utils/BuildLibCalls.h
+++ b/include/llvm/Transforms/Utils/BuildLibCalls.h
@@ -39,6 +39,11 @@ namespace llvm {
Value *EmitStrCpy(Value *Dst, Value *Src, IRBuilder<> &B,
const TargetData *TD);
+ /// EmitStpCpy - Emit a call to the stpcpy function to the builder, for the
+ /// specified pointer arguments.
+ Value *EmitStpCpy(Value *Dst, Value *Src, IRBuilder<> &B,
+ const TargetData *TD);
+
/// EmitStrNCpy - Emit a call to the strncpy function to the builder, for the
/// specified pointer arguments and length.
Value *EmitStrNCpy(Value *Dst, Value *Src, Value *Len, IRBuilder<> &B,