diff options
| author | Chris Lattner <sabre@nondot.org> | 2006-03-03 01:31:12 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2006-03-03 01:31:12 +0000 |
| commit | 7f731c5db9bfec451f1e36fd11030ad166d59770 (patch) | |
| tree | cef25134f71977491ba61b173121db3ae7a85f06 /llvm/examples | |
| parent | ea7986aecaf17711e679e6ba305f718d070c8253 (diff) | |
| download | bcm5719-llvm-7f731c5db9bfec451f1e36fd11030ad166d59770.tar.gz bcm5719-llvm-7f731c5db9bfec451f1e36fd11030ad166d59770.zip | |
Upgrade this to use the new intrinsic names
llvm-svn: 26483
Diffstat (limited to 'llvm/examples')
| -rw-r--r-- | llvm/examples/BFtoLLVM/BFtoLLVM.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/examples/BFtoLLVM/BFtoLLVM.cpp b/llvm/examples/BFtoLLVM/BFtoLLVM.cpp index 35acd57e72e..a85ef24537d 100644 --- a/llvm/examples/BFtoLLVM/BFtoLLVM.cpp +++ b/llvm/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"; |

