summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-12-02 19:00:22 +0000
committerChris Lattner <sabre@nondot.org>2005-12-02 19:00:22 +0000
commit352630141c9e4f0893b4df8e5ac9b3746cfdaf3c (patch)
tree06c7dfec05d71f605bd232834247896448e8809d
parentf9b27d70110e5dc4554805d00409a4ff2f44a2a1 (diff)
downloadbcm5719-llvm-352630141c9e4f0893b4df8e5ac9b3746cfdaf3c.tar.gz
bcm5719-llvm-352630141c9e4f0893b4df8e5ac9b3746cfdaf3c.zip
Revert my previous patch which broke due to lazy streaming of functions
from .bc files. llvm-svn: 24575
-rw-r--r--llvm/tools/lli/lli.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/lli/lli.cpp b/llvm/tools/lli/lli.cpp
index 93eb6fce5d1..c1b7478a376 100644
--- a/llvm/tools/lli/lli.cpp
+++ b/llvm/tools/lli/lli.cpp
@@ -85,7 +85,7 @@ int main(int argc, char **argv, char * const *envp) {
// 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;
}
OpenPOWER on IntegriCloud