mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-24 08:24:33 +00:00
For PR411:
Adjust to changes in Module interface: getMainFunction() -> getFunction("main") getNamedFunction(X) -> getFunction(X) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33922 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -95,7 +95,7 @@ bool InternalizePass::runOnModule(Module &M) {
|
||||
// internalize the module, it must be a library or something.
|
||||
//
|
||||
if (ExternalNames.empty()) {
|
||||
Function *MainFunc = M.getMainFunction();
|
||||
Function *MainFunc = M.getFunction("main");
|
||||
if (MainFunc == 0 || MainFunc->isDeclaration())
|
||||
return false; // No main found, must be a library...
|
||||
|
||||
|
Reference in New Issue
Block a user