summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorSanjiv Gupta <sanjiv.gupta@microchip.com>2010-02-26 18:32:18 +0000
committerSanjiv Gupta <sanjiv.gupta@microchip.com>2010-02-26 18:32:18 +0000
commitef686dc38d309e8491c75f6fb32706550100ff59 (patch)
tree9384518c9b81ca12e408c8f370049b2261f72acb /llvm/lib
parent0521c09d97b60609f4e563fbe015be82a95fccde (diff)
downloadbcm5719-llvm-ef686dc38d309e8491c75f6fb32706550100ff59.tar.gz
bcm5719-llvm-ef686dc38d309e8491c75f6fb32706550100ff59.zip
The cloner has nothing to do if any of the main or ISR entrypoints are not
present in the module. llvm-svn: 97232
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/PIC16/PIC16Passes/PIC16Cloner.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Target/PIC16/PIC16Passes/PIC16Cloner.cpp b/llvm/lib/Target/PIC16/PIC16Passes/PIC16Cloner.cpp
index 01dbdca3b8f..865da35de3c 100644
--- a/llvm/lib/Target/PIC16/PIC16Passes/PIC16Cloner.cpp
+++ b/llvm/lib/Target/PIC16/PIC16Passes/PIC16Cloner.cpp
@@ -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.
OpenPOWER on IntegriCloud