diff options
author | Sanjiv Gupta <sanjiv.gupta@microchip.com> | 2009-05-10 16:18:39 +0000 |
---|---|---|
committer | Sanjiv Gupta <sanjiv.gupta@microchip.com> | 2009-05-10 16:18:39 +0000 |
commit | af3fdb5dc4edf052ee4a3a169250fc3be304d1a7 (patch) | |
tree | fa5d78cf9c61a826b9db4443572221d68c0f9739 /lib | |
parent | 9c11d21d907309fc19413da671d6b2d0867d0c9f (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71394 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Target/PIC16/PIC16AsmPrinter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/PIC16/PIC16AsmPrinter.cpp b/lib/Target/PIC16/PIC16AsmPrinter.cpp index 86f5b4ee58..1aebe09209 100644 --- a/lib/Target/PIC16/PIC16AsmPrinter.cpp +++ b/lib/Target/PIC16/PIC16AsmPrinter.cpp @@ -175,8 +175,8 @@ void PIC16AsmPrinter::EmitExternsAndGlobals (Module &M) { 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(); |