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 0521c09d97
commit ef686dc38d
1 changed files with 3 additions and 0 deletions

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.