From fb882ce243aa20240f61ec5973ec77bf49910f0e Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 3 Mar 2006 01:31:12 +0000 Subject: [PATCH] Upgrade this to use the new intrinsic names git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26483 91177308-0d34-0410-b5e6-96231b3b80d8 --- examples/BFtoLLVM/BFtoLLVM.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/BFtoLLVM/BFtoLLVM.cpp b/examples/BFtoLLVM/BFtoLLVM.cpp index 35acd57e72e..a85ef24537d 100644 --- a/examples/BFtoLLVM/BFtoLLVM.cpp +++ b/examples/BFtoLLVM/BFtoLLVM.cpp @@ -29,7 +29,7 @@ void emitDeclarations(std::ofstream &dest) { << "\n; Declarations\n" << "\ndeclare int %getchar()\n" << "declare int %putchar(int)\n" - << "declare void %llvm.memset(sbyte*, ubyte, uint, uint)\n" + << "declare void %llvm.memset.i32(sbyte*, ubyte, uint, uint)\n" << "\n"; } @@ -38,7 +38,8 @@ void emitMainFunctionProlog(std::ofstream &dest) { << "int %main(int %argc, sbyte** %argv) {\n" << "\nentry:\n" << "%arr = alloca sbyte, uint 30000\n" - << "call void (sbyte*, ubyte, uint, uint)* %llvm.memset(sbyte* %arr, ubyte 0, uint 30000, uint 1)\n" + << "call void (sbyte*, ubyte, uint, uint)* %llvm.memset.i32" + << "(sbyte* %arr, ubyte 0, uint 30000, uint 1)\n" << "%ptrbox = alloca sbyte*\n" << "store sbyte* %arr, sbyte **%ptrbox\n" << "\n";