[llvm-commits] CVS: llvm/lib/Target/CBackend/Writer.cpp

Chris Lattner lattner at cs.uiuc.edu
Sun May 9 11:03:01 PDT 2004


Changes in directory llvm/lib/Target/CBackend:

Writer.cpp updated: 1.172 -> 1.173

---
Log message:

Do not emit prototypes for setjmp/longjmp, as they are handled specially


---
Diffs of the changes:  (+2 -1)

Index: llvm/lib/Target/CBackend/Writer.cpp
diff -u llvm/lib/Target/CBackend/Writer.cpp:1.172 llvm/lib/Target/CBackend/Writer.cpp:1.173
--- llvm/lib/Target/CBackend/Writer.cpp:1.172	Sun May  9 01:20:51 2004
+++ llvm/lib/Target/CBackend/Writer.cpp	Sun May  9 11:03:29 2004
@@ -723,7 +723,8 @@
     Out << "\n/* Function Declarations */\n";
     for (Module::iterator I = M.begin(), E = M.end(); I != E; ++I) {
       // Don't print declarations for intrinsic functions.
-      if (!I->getIntrinsicID()) {
+      if (!I->getIntrinsicID() && 
+          I->getName() != "setjmp" && I->getName() != "longjmp") {
         printFunctionSignature(I, true);
         if (I->hasWeakLinkage()) Out << " __ATTRIBUTE_WEAK__";
         if (I->hasLinkOnceLinkage()) Out << " __ATTRIBUTE_WEAK__";





More information about the llvm-commits mailing list