mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-22 10:36:10 +00:00
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
This commit is contained in:
parent
9c11d21d90
commit
af3fdb5dc4
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user