Changes in directory llvm/lib/Target/CBackend:
Writer.cpp updated: 1.280.4.1 -> 1.280.4.2 --- Log message: Make the given functions with the const attribute. No, this should never be folded into a non-experimental LLVM branch. --- Diffs of the changes: (+8 -0) Writer.cpp | 8 ++++++++ 1 files changed, 8 insertions(+) Index: llvm/lib/Target/CBackend/Writer.cpp diff -u llvm/lib/Target/CBackend/Writer.cpp:1.280.4.1 llvm/lib/Target/CBackend/Writer.cpp:1.280.4.2 --- llvm/lib/Target/CBackend/Writer.cpp:1.280.4.1 Tue Feb 20 12:21:25 2007 +++ llvm/lib/Target/CBackend/Writer.cpp Mon Mar 19 00:37:44 2007 @@ -1246,6 +1246,14 @@ if (StaticDtors.count(I)) Out << " __ATTRIBUTE_DTOR__"; +#if 1 + if ((I->getName() == "exactcheck") || (I->getName() == "exactcheck2") || + (I->getName() == "poolcheck") || + (I->getName() == "poolcheckarray") || (I->getName() == "poolcheckarray_i") || + (I->getName() == "pchk_bounds") || (I->getName() == "pchk_bounds_i")) { + Out << " __attribute__ ((const))"; + } +#endif if (I->hasName() && I->getName()[0] == 1) Out << " LLVM_ASM(\"" << I->getName().c_str()+1 << "\")"; _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits