[llvm-commits] [llvm] r97232 - /llvm/trunk/lib/Target/PIC16/PIC16Passes/PIC16Cloner.cpp

Sanjiv Gupta sanjiv.gupta at microchip.com
Fri Feb 26 10:32:18 PST 2010


Author: sgupta
Date: Fri Feb 26 12:32:18 2010
New Revision: 97232

URL: http://llvm.org/viewvc/llvm-project?rev=97232&view=rev
Log:
The cloner has nothing to do if any of the main or ISR entrypoints are not 
present in the module.

Modified:
    llvm/trunk/lib/Target/PIC16/PIC16Passes/PIC16Cloner.cpp

Modified: llvm/trunk/lib/Target/PIC16/PIC16Passes/PIC16Cloner.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PIC16/PIC16Passes/PIC16Cloner.cpp?rev=97232&r1=97231&r2=97232&view=diff
==============================================================================
--- llvm/trunk/lib/Target/PIC16/PIC16Passes/PIC16Cloner.cpp (original)
+++ llvm/trunk/lib/Target/PIC16/PIC16Passes/PIC16Cloner.cpp Fri Feb 26 12:32:18 2010
@@ -89,6 +89,9 @@
      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.





More information about the llvm-commits mailing list