mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
The cloner has nothing to do if any of the main or ISR entrypoints are not
present in the module. llvm-svn: 97232
This commit is contained in:
parent
3832b527d8
commit
487b119dc9
@ -89,6 +89,9 @@ bool PIC16Cloner::runOnModule(Module &M) {
|
||||
if (mainCGN && isrCGN)
|
||||
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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user