from .bc files.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24575
91177308-0d34-0410-b5e6-
96231b3b80d8
// EnvVars to determine envp.
//
Function *Fn = MP->getModule()->getMainFunction();
// EnvVars to determine envp.
//
Function *Fn = MP->getModule()->getMainFunction();
- if (!Fn || Fn->isExternal()) {
std::cerr << "'main' function not found in module.\n";
return -1;
}
std::cerr << "'main' function not found in module.\n";
return -1;
}