Revert my previous patch which broke due to lazy streaming of functions

from .bc files.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24575 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2005-12-02 19:00:22 +00:00
parent cde0f5cfe7
commit 52098898b4

View File

@ -85,7 +85,7 @@ int main(int argc, char **argv, char * const *envp) {
// EnvVars to determine envp. // EnvVars to determine envp.
// //
Function *Fn = MP->getModule()->getMainFunction(); Function *Fn = MP->getModule()->getMainFunction();
if (!Fn || Fn->isExternal()) { if (!Fn) {
std::cerr << "'main' function not found in module.\n"; std::cerr << "'main' function not found in module.\n";
return -1; return -1;
} }