1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02: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:
Sanjiv Gupta 2010-02-26 18:32:18 +00:00
parent 3832b527d8
commit 487b119dc9

View File

@ -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.