aboutsummaryrefslogtreecommitdiffstats
path: root/examples/BrainF
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-11-21 16:42:48 +0000
committerChris Lattner <sabre@nondot.org>2008-11-21 16:42:48 +0000
commit824b958e6fb1236e92e4d07f3acf18fca107cdc0 (patch)
treef91d265e59851bb2409eb6784c8a83b1d18b8267 /examples/BrainF
parentdc770929cb2f97397970e2942b746839fc387992 (diff)
downloadexternal_llvm-824b958e6fb1236e92e4d07f3acf18fca107cdc0.zip
external_llvm-824b958e6fb1236e92e4d07f3acf18fca107cdc0.tar.gz
external_llvm-824b958e6fb1236e92e4d07f3acf18fca107cdc0.tar.bz2
reapply Sanjiv's patch to genericize memcpy/memset/memmove to take an
arbitrary integer width for the count. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59823 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'examples/BrainF')
-rw-r--r--examples/BrainF/BrainF.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/BrainF/BrainF.cpp b/examples/BrainF/BrainF.cpp
index 86f2ea4..32a14c4 100644
--- a/examples/BrainF/BrainF.cpp
+++ b/examples/BrainF/BrainF.cpp
@@ -53,7 +53,9 @@ void BrainF::header() {
//Function prototypes
//declare void @llvm.memset.i32(i8 *, i8, i32, i32)
- Function *memset_func = Intrinsic::getDeclaration(module, Intrinsic::memset_i32);
+ const Type *Tys[] = { Type::Int32Ty };
+ Function *memset_func = Intrinsic::getDeclaration(module, Intrinsic::memset,
+ Tys, 1);
//declare i32 @getchar()
getchar_func = cast<Function>(module->