forked from OSchip/llvm-project
Do not call getMangledName on Intrinsics.
llvm-svn: 76842
This commit is contained in:
parent
6292003492
commit
56df1e7969
|
@ -222,14 +222,13 @@ void PIC16AsmPrinter::EmitFunctionDecls(Module &M) {
|
||||||
// Emit declarations for external functions.
|
// Emit declarations for external functions.
|
||||||
O <<"\n"<<TAI->getCommentString() << "Function Declarations - BEGIN." <<"\n";
|
O <<"\n"<<TAI->getCommentString() << "Function Declarations - BEGIN." <<"\n";
|
||||||
for (Module::iterator I = M.begin(), E = M.end(); I != E; I++) {
|
for (Module::iterator I = M.begin(), E = M.end(); I != E; I++) {
|
||||||
|
if (I->isIntrinsic())
|
||||||
|
continue;
|
||||||
|
|
||||||
std::string Name = Mang->getMangledName(I);
|
std::string Name = Mang->getMangledName(I);
|
||||||
if (Name.compare("@abort") == 0)
|
if (Name.compare("@abort") == 0)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
// If it is llvm intrinsic call then don't emit
|
|
||||||
if (Name.find("llvm.") != std::string::npos)
|
|
||||||
continue;
|
|
||||||
|
|
||||||
if (!I->isDeclaration() && !I->hasExternalLinkage())
|
if (!I->isDeclaration() && !I->hasExternalLinkage())
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue