diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2007-02-05 21:19:13 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2007-02-05 21:19:13 +0000 |
commit | 1241d6d5abb58dc8af3f3dc8edc3d3b3158111a4 (patch) | |
tree | ad451cdec90d6387b43be20fdfdd733e8003a1b6 /llvm/lib/Linker/LinkArchives.cpp | |
parent | 3c52e275ea70ff0466b7a49f14ae02fa136f52f7 (diff) | |
download | bcm5719-llvm-1241d6d5abb58dc8af3f3dc8edc3d3b3158111a4.tar.gz bcm5719-llvm-1241d6d5abb58dc8af3f3dc8edc3d3b3158111a4.zip |
For PR411:
Adjust to changes in Module interface:
getMainFunction() -> getFunction("main")
getNamedFunction(X) -> getFunction(X)
llvm-svn: 33922
Diffstat (limited to 'llvm/lib/Linker/LinkArchives.cpp')
-rw-r--r-- | llvm/lib/Linker/LinkArchives.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Linker/LinkArchives.cpp b/llvm/lib/Linker/LinkArchives.cpp index d00e1f2467a..8186e7b4d18 100644 --- a/llvm/lib/Linker/LinkArchives.cpp +++ b/llvm/lib/Linker/LinkArchives.cpp @@ -43,7 +43,7 @@ GetAllUndefinedSymbols(Module *M, std::set<std::string> &UndefinedSymbols) { // 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"); |