diff options
author | Gabor Greif <ggreif@gmail.com> | 2008-05-16 19:29:10 +0000 |
---|---|---|
committer | Gabor Greif <ggreif@gmail.com> | 2008-05-16 19:29:10 +0000 |
commit | 7cbd8a3e92221437048b484d5ef9c0a22d0f8c58 (patch) | |
tree | 9c9985d8a294246ec942188ae322e6ce4b5d4efe /examples/Fibonacci | |
parent | 446efddfcd655131bd0ceeacce9c1166e30ed479 (diff) | |
download | external_llvm-7cbd8a3e92221437048b484d5ef9c0a22d0f8c58.zip external_llvm-7cbd8a3e92221437048b484d5ef9c0a22d0f8c58.tar.gz external_llvm-7cbd8a3e92221437048b484d5ef9c0a22d0f8c58.tar.bz2 |
API change for {BinaryOperator|CmpInst|CastInst}::create*() --> Create. Legacy interfaces will be in place for some time. (Merge from use-diet branch.)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51200 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'examples/Fibonacci')
-rw-r--r-- | examples/Fibonacci/fibonacci.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/Fibonacci/fibonacci.cpp b/examples/Fibonacci/fibonacci.cpp index f5ef0d0..73dff11 100644 --- a/examples/Fibonacci/fibonacci.cpp +++ b/examples/Fibonacci/fibonacci.cpp @@ -66,18 +66,18 @@ static Function *CreateFibFunction(Module *M) { ReturnInst::Create(One, RetBB); // create fib(x-1) - Value *Sub = BinaryOperator::createSub(ArgX, One, "arg", RecurseBB); + Value *Sub = BinaryOperator::CreateSub(ArgX, One, "arg", RecurseBB); CallInst *CallFibX1 = CallInst::Create(FibF, Sub, "fibx1", RecurseBB); CallFibX1->setTailCall(); // create fib(x-2) - Sub = BinaryOperator::createSub(ArgX, Two, "arg", RecurseBB); + Sub = BinaryOperator::CreateSub(ArgX, Two, "arg", RecurseBB); CallInst *CallFibX2 = CallInst::Create(FibF, Sub, "fibx2", RecurseBB); CallFibX2->setTailCall(); // fib(x-1)+fib(x-2) - Value *Sum = BinaryOperator::createAdd(CallFibX1, CallFibX2, + Value *Sum = BinaryOperator::CreateAdd(CallFibX1, CallFibX2, "addresult", RecurseBB); // Create the return instruction and add it to the basic block |