[llvm-commits] CVS: llvm/lib/Linker/LinkArchives.cpp

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



Changes in directory llvm/lib/Linker:

LinkArchives.cpp updated: 1.55 -> 1.56
---
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)

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


Index: llvm/lib/Linker/LinkArchives.cpp
diff -u llvm/lib/Linker/LinkArchives.cpp:1.55 llvm/lib/Linker/LinkArchives.cpp:1.56
--- llvm/lib/Linker/LinkArchives.cpp:1.55	Tue Jan 30 14:08:37 2007
+++ llvm/lib/Linker/LinkArchives.cpp	Mon Feb  5 15:19:13 2007
@@ -43,7 +43,7 @@
   // If the program doesn't define a main, try pulling one in from a .a file.
   // This is needed for programs where the main function is defined in an
   // archive, such f2c'd programs.
-  Function *Main = M->getMainFunction();
+  Function *Main = M->getFunction("main");
   if (Main == 0 || Main->isDeclaration())
     UndefinedSymbols.insert("main");
 






More information about the llvm-commits mailing list