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
diff --git a/tools/lli/lli.cpp b/tools/lli/lli.cpp
index 93eb6fc..c1b7478 100644
--- a/tools/lli/lli.cpp
+++ b/tools/lli/lli.cpp
@@ -85,7 +85,7 @@
// EnvVars to determine envp.
//
Function *Fn = MP->getModule()->getMainFunction();
- if (!Fn || Fn->isExternal()) {
+ if (!Fn) {
std::cerr << "'main' function not found in module.\n";
return -1;
}