aboutsummaryrefslogtreecommitdiffstats
path: root/tools
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
commit52098898b463923a01a0bf3d18d6fb9f96c8d5ef (patch)
treee663790fd55867f7d59a52f27d1b4e38e071d79b /tools
parentcde0f5cfe7b7e0a73708c0db29dcfc0d00294e98 (diff)
downloadexternal_llvm-52098898b463923a01a0bf3d18d6fb9f96c8d5ef.zip
external_llvm-52098898b463923a01a0bf3d18d6fb9f96c8d5ef.tar.gz
external_llvm-52098898b463923a01a0bf3d18d6fb9f96c8d5ef.tar.bz2
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
Diffstat (limited to 'tools')
-rw-r--r--tools/lli/lli.cpp2
1 files changed, 1 insertions, 1 deletions
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 @@ 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;
}