mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-20 14:29:27 +00:00
Do not call getMangledName on Intrinsics.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76842 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2f9c3b002d
commit
0f009d2ea5
@ -222,14 +222,13 @@ void PIC16AsmPrinter::EmitFunctionDecls(Module &M) {
|
||||
// Emit declarations for external functions.
|
||||
O <<"\n"<<TAI->getCommentString() << "Function Declarations - BEGIN." <<"\n";
|
||||
for (Module::iterator I = M.begin(), E = M.end(); I != E; I++) {
|
||||
if (I->isIntrinsic())
|
||||
continue;
|
||||
|
||||
std::string Name = Mang->getMangledName(I);
|
||||
if (Name.compare("@abort") == 0)
|
||||
continue;
|
||||
|
||||
// If it is llvm intrinsic call then don't emit
|
||||
if (Name.find("llvm.") != std::string::npos)
|
||||
continue;
|
||||
|
||||
if (!I->isDeclaration() && !I->hasExternalLinkage())
|
||||
continue;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user