mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
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:
parent
cde0f5cfe7
commit
52098898b4
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user