mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-15 07:34:33 +00:00
The cloner has nothing to do if any of the main or ISR entrypoints are not
present in the module. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97232 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3f5e0b8114
commit
20c51be30c
@ -90,6 +90,9 @@ bool PIC16Cloner::runOnModule(Module &M) {
|
||||
break;
|
||||
}
|
||||
|
||||
// We have nothing to do if any of the main or ISR is missing.
|
||||
if (! mainCGN || ! isrCGN) return false;
|
||||
|
||||
// Time for some diagnostics.
|
||||
// See if the main itself is interrupt function then report an error.
|
||||
if (PAN::isISR(mainCGN->getFunction()->getSection())) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user