Changes in directory llvm/lib/CodeGen:
IntrinsicLowering.cpp updated: 1.79 -> 1.80 --- Log message: Make sure intrinsics that are lowered to functions make the function weak linkage so we only end up with one of them in a program. These are, after all overloaded and templatish in nature. --- Diffs of the changes: (+2 -2) IntrinsicLowering.cpp | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) Index: llvm/lib/CodeGen/IntrinsicLowering.cpp diff -u llvm/lib/CodeGen/IntrinsicLowering.cpp:1.79 llvm/lib/CodeGen/IntrinsicLowering.cpp:1.80 --- llvm/lib/CodeGen/IntrinsicLowering.cpp:1.79 Thu Apr 12 08:30:14 2007 +++ llvm/lib/CodeGen/IntrinsicLowering.cpp Thu Apr 12 16:53:38 2007 @@ -264,7 +264,7 @@ Name[i] = '_'; Module* M = F->getParent(); F = cast<Function>(M->getOrInsertFunction(Name, FT)); - F->setLinkage(GlobalValue::InternalLinkage); + F->setLinkage(GlobalValue::WeakLinkage); // If we haven't defined the impl function yet, do so now if (F->isDeclaration()) { @@ -437,7 +437,7 @@ Name[i] = '_'; Module* M = F->getParent(); F = cast<Function>(M->getOrInsertFunction(Name, FT)); - F->setLinkage(GlobalValue::InternalLinkage); + F->setLinkage(GlobalValue::WeakLinkage); // If we haven't defined the impl function yet, do so now if (F->isDeclaration()) { _______________________________________________ llvm-commits mailing list [EMAIL PROTECTED] http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits