aboutsummaryrefslogtreecommitdiff
path: root/llvm/examples/BrainF/BrainF.cpp
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
commitdd7083452fd0b9f69ed71e00dca3dbf41831586d (patch)
tree5bfc47f2a29ed613c058dee3535d5175b53b717b /llvm/examples/BrainF/BrainF.cpp
parent5d58c3a568b64df97ec16b992c7be07adfdf69e6 (diff)
downloadllvm-dd7083452fd0b9f69ed71e00dca3dbf41831586d.zip
llvm-dd7083452fd0b9f69ed71e00dca3dbf41831586d.tar.gz
llvm-dd7083452fd0b9f69ed71e00dca3dbf41831586d.tar.bz2
reapply Sanjiv's patch to genericize memcpy/memset/memmove to take an
arbitrary integer width for the count. llvm-svn: 59823
Diffstat (limited to 'llvm/examples/BrainF/BrainF.cpp')
-rw-r--r--llvm/examples/BrainF/BrainF.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/examples/BrainF/BrainF.cpp b/llvm/examples/BrainF/BrainF.cpp
index 86f2ea4..32a14c4 100644
--- a/llvm/examples/BrainF/BrainF.cpp
+++ b/llvm/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->