Upgrade this to use the new intrinsic names
authorChris Lattner <sabre@nondot.org>
Fri, 3 Mar 2006 01:31:12 +0000 (01:31 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 3 Mar 2006 01:31:12 +0000 (01:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26483 91177308-0d34-0410-b5e6-96231b3b80d8

examples/BFtoLLVM/BFtoLLVM.cpp

index 35acd57e72ec6853ab1ac8f9098283746ac033cd..a85ef24537d10b0d3f74ee95eb0edbbfae2e8d78 100644 (file)
@@ -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";