diff options
| author | Francois Pichet <pichet2000@gmail.com> | 2011-07-15 10:59:52 +0000 |
|---|---|---|
| committer | Francois Pichet <pichet2000@gmail.com> | 2011-07-15 10:59:52 +0000 |
| commit | c5d10504d5767896f38c3c4d2ae966348f0aa2cf (patch) | |
| tree | 1c012c27cb820452b80de1fe2891813cc0a32024 /llvm/examples/Kaleidoscope/Chapter6 | |
| parent | 5bd375a6cc2e7518c4cfb881b0c5c42f8b78f947 (diff) | |
| download | bcm5719-llvm-c5d10504d5767896f38c3c4d2ae966348f0aa2cf.tar.gz bcm5719-llvm-c5d10504d5767896f38c3c4d2ae966348f0aa2cf.zip | |
Convert CallInst and InvokeInst APIs to use ArrayRef. For the LLVM examples.
llvm-svn: 135266
Diffstat (limited to 'llvm/examples/Kaleidoscope/Chapter6')
| -rw-r--r-- | llvm/examples/Kaleidoscope/Chapter6/toy.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/examples/Kaleidoscope/Chapter6/toy.cpp b/llvm/examples/Kaleidoscope/Chapter6/toy.cpp index 7d318159b18..b25e946cc2d 100644 --- a/llvm/examples/Kaleidoscope/Chapter6/toy.cpp +++ b/llvm/examples/Kaleidoscope/Chapter6/toy.cpp @@ -589,7 +589,7 @@ Value *BinaryExprAST::Codegen() { assert(F && "binary operator not found!"); Value *Ops[] = { L, R }; - return Builder.CreateCall(F, Ops, Ops+2, "binop"); + return Builder.CreateCall(F, Ops, "binop"); } Value *CallExprAST::Codegen() { @@ -608,7 +608,7 @@ Value *CallExprAST::Codegen() { if (ArgsV.back() == 0) return 0; } - return Builder.CreateCall(CalleeF, ArgsV.begin(), ArgsV.end(), "calltmp"); + return Builder.CreateCall(CalleeF, ArgsV, "calltmp"); } Value *IfExprAST::Codegen() { |

