diff options
author | Sanjiv Gupta <sanjiv.gupta@microchip.com> | 2008-11-21 07:49:09 +0000 |
---|---|---|
committer | Sanjiv Gupta <sanjiv.gupta@microchip.com> | 2008-11-21 07:49:09 +0000 |
commit | 219ab405e6bea993da14cf3ce7b50983c3bb7a6f (patch) | |
tree | f91d265e59851bb2409eb6784c8a83b1d18b8267 /examples/BrainF | |
parent | 137dccd5d86e0d0741f9560970f9b2952221d37c (diff) | |
download | external_llvm-219ab405e6bea993da14cf3ce7b50983c3bb7a6f.zip external_llvm-219ab405e6bea993da14cf3ce7b50983c3bb7a6f.tar.gz external_llvm-219ab405e6bea993da14cf3ce7b50983c3bb7a6f.tar.bz2 |
Make mem[cpy,move,set] intrinsics overloaded.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59802 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'examples/BrainF')
-rw-r--r-- | examples/BrainF/BrainF.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/BrainF/BrainF.cpp b/examples/BrainF/BrainF.cpp index 86f2ea4..32a14c4 100644 --- a/examples/BrainF/BrainF.cpp +++ b/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-> |