[llvm-commits] [llvm] r71394 - /llvm/trunk/lib/Target/PIC16/PIC16AsmPrinter.cpp

Sanjiv Gupta sanjiv.gupta at microchip.com
Sun May 10 09:18:40 PDT 2009


Author: sgupta
Date: Sun May 10 11:18:39 2009
New Revision: 71394

URL: http://llvm.org/viewvc/llvm-project?rev=71394&view=rev
Log:
Module iterator contains list of filescope functions as well, we don't need to emit and global declarations for them. This was working earlier and was broken during one of the recent commit for PIC16 naming.

Modified:
    llvm/trunk/lib/Target/PIC16/PIC16AsmPrinter.cpp

Modified: llvm/trunk/lib/Target/PIC16/PIC16AsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PIC16/PIC16AsmPrinter.cpp?rev=71394&r1=71393&r2=71394&view=diff

==============================================================================
--- llvm/trunk/lib/Target/PIC16/PIC16AsmPrinter.cpp (original)
+++ llvm/trunk/lib/Target/PIC16/PIC16AsmPrinter.cpp Sun May 10 11:18:39 2009
@@ -175,8 +175,8 @@
     if (Name.find("llvm.") != std::string::npos)
       continue;
 
-    assert ((I->isDeclaration() || I->hasExternalLinkage())
-            && "Not an extern function declaration or definition");
+    if (! (I->isDeclaration() || I->hasExternalLinkage()))
+      continue;
 
     const char *directive = I->isDeclaration() ? TAI->getExternDirective() :
                                                  TAI->getGlobalDirective();





More information about the llvm-commits mailing list