projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cde0f5c
)
Revert my previous patch which broke due to lazy streaming of functions
author
Chris Lattner
<sabre@nondot.org>
Fri, 2 Dec 2005 19:00:22 +0000
(19:00 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Fri, 2 Dec 2005 19:00:22 +0000
(19:00 +0000)
from .bc files.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24575
91177308
-0d34-0410-b5e6-
96231b3b80d8
tools/lli/lli.cpp
patch
|
blob
|
history
diff --git
a/tools/lli/lli.cpp
b/tools/lli/lli.cpp
index 93eb6fce5d1dea6c18cecca3f60848736e6ea4df..c1b7478a3769ba4372eeac91b6378c46c0ce4ab2 100644
(file)
--- 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;
}