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 | fb882ce243aa20240f61ec5973ec77bf49910f0e (patch) | |
tree | 6da3743ed1ec6793a53251b0d7f20f8ba893d2c9 /examples | |
parent | aecb0627fa7e4fec42799c2b19d0743ff3ff7ae9 (diff) | |
download | external_llvm-fb882ce243aa20240f61ec5973ec77bf49910f0e.zip external_llvm-fb882ce243aa20240f61ec5973ec77bf49910f0e.tar.gz external_llvm-fb882ce243aa20240f61ec5973ec77bf49910f0e.tar.bz2 |
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
Diffstat (limited to 'examples')
-rw-r--r-- | examples/BFtoLLVM/BFtoLLVM.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/BFtoLLVM/BFtoLLVM.cpp b/examples/BFtoLLVM/BFtoLLVM.cpp index 35acd57..a85ef24 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"; |