mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +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.
|
// EnvVars to determine envp.
|
||||||
//
|
//
|
||||||
Function *Fn = MP->getModule()->getMainFunction();
|
Function *Fn = MP->getModule()->getMainFunction();
|
||||||
if (!Fn || Fn->isExternal()) {
|
if (!Fn) {
|
||||||
std::cerr << "'main' function not found in module.\n";
|
std::cerr << "'main' function not found in module.\n";
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user