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:
Reid Spencer 2006-10-22 09:58:21 +00:00
parent c7212791a4
commit aa1c614784
1 changed files with 2 additions and 2 deletions

View File

@ -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__";