[llvm-commits] CVS: llvm/tools/lli/lli.cpp

Reid Spencer reid at x10sys.com
Mon Feb 5 13:19:53 PST 2007



Changes in directory llvm/tools/lli:

lli.cpp updated: 1.65 -> 1.66
---
Log message:

For PR411: http://llvm.org/PR411 :
Adjust to changes in Module interface:
getMainFunction() -> getFunction("main")
getNamedFunction(X) -> getFunction(X)



---
Diffs of the changes:  (+1 -1)

 lli.cpp |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/tools/lli/lli.cpp
diff -u llvm/tools/lli/lli.cpp:1.65 llvm/tools/lli/lli.cpp:1.66
--- llvm/tools/lli/lli.cpp:1.65	Mon Jan  8 01:36:34 2007
+++ llvm/tools/lli/lli.cpp	Mon Feb  5 15:19:13 2007
@@ -103,7 +103,7 @@
     // using the contents of Args to determine argc & argv, and the contents of
     // EnvVars to determine envp.
     //
-    Function *Fn = MP->getModule()->getMainFunction();
+    Function *Fn = MP->getModule()->getFunction("main");
     if (!Fn) {
       std::cerr << "'main' function not found in module.\n";
       return -1;






More information about the llvm-commits mailing list