[llvm-commits] CVS: llvm/examples/Fibonacci/fibonacci.cpp
Misha Brukman
brukman at cs.uiuc.edu
Thu Nov 4 20:11:51 PST 2004
Changes in directory llvm/examples/Fibonacci:
fibonacci.cpp updated: 1.4 -> 1.5
---
Log message:
Clean up code layout, delete extra blank line, say `fibonacci' instead of `foo'
---
Diffs of the changes: (+2 -4)
Index: llvm/examples/Fibonacci/fibonacci.cpp
diff -u llvm/examples/Fibonacci/fibonacci.cpp:1.4 llvm/examples/Fibonacci/fibonacci.cpp:1.5
--- llvm/examples/Fibonacci/fibonacci.cpp:1.4 Wed Nov 3 23:00:18 2004
+++ llvm/examples/Fibonacci/fibonacci.cpp Thu Nov 4 22:11:40 2004
@@ -50,7 +50,6 @@
Argument *ArgX = FibF->abegin(); // Get the arg.
ArgX->setName("AnArg"); // Give it a nice symbolic name for fun.
-
// Create the true_block.
BasicBlock *RetBB = new BasicBlock("return", FibF);
// Create an exit block.
@@ -103,10 +102,9 @@
std::cerr << "OK\n";
std::cerr << "We just constructed this LLVM module:\n\n---------\n" << *M;
- std::cerr << "---------\nstarting fibonacci("
- << n << ") with JIT...\n";
+ std::cerr << "---------\nstarting fibonacci(" << n << ") with JIT...\n";
- // Call the `foo' function with argument n:
+ // Call the Fibonacci function with argument n:
std::vector<GenericValue> Args(1);
Args[0].IntVal = n;
GenericValue GV = EE->runFunction(FibF, Args);
More information about the llvm-commits
mailing list