forked from OSchip/llvm-project
Don't generate a prototype for _setjmp. At least on Linux, this function
has a different prototype than the one #included from <setjmp.h>. This patch fixes siod and a number of other test cases on Linux that were failing the CBE because of this _setjmp issue. llvm-svn: 31112
This commit is contained in:
parent
c7212791a4
commit
aa1c614784
|
@ -1075,8 +1075,8 @@ bool CWriter::doInitialization(Module &M) {
|
|||
|
||||
for (Module::iterator I = M.begin(), E = M.end(); I != E; ++I) {
|
||||
// Don't print declarations for intrinsic functions.
|
||||
if (!I->getIntrinsicID() &&
|
||||
I->getName() != "setjmp" && I->getName() != "longjmp") {
|
||||
if (!I->getIntrinsicID() && I->getName() != "setjmp" &&
|
||||
I->getName() != "longjmp" && I->getName() != "_setjmp") {
|
||||
printFunctionSignature(I, true);
|
||||
if (I->hasWeakLinkage() || I->hasLinkOnceLinkage())
|
||||
Out << " __ATTRIBUTE_WEAK__";
|
||||
|
|
Loading…
Reference in New Issue