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:
Sanjiv Gupta 2010-02-26 18:32:18 +00:00
parent 3f5e0b8114
commit 20c51be30c

View File

@ -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())) {