[llvm-commits] [llvm] r75564 - /llvm/trunk/lib/VMCore/Mangler.cpp
Chris Lattner
sabre at nondot.org
Mon Jul 13 17:15:14 PDT 2009
Author: lattner
Date: Mon Jul 13 19:15:14 2009
New Revision: 75564
URL: http://llvm.org/viewvc/llvm-project?rev=75564&view=rev
Log:
the mangler can never mangle intrinsics, don't allow this.
Modified:
llvm/trunk/lib/VMCore/Mangler.cpp
Modified: llvm/trunk/lib/VMCore/Mangler.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/Mangler.cpp?rev=75564&r1=75563&r2=75564&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/Mangler.cpp (original)
+++ llvm/trunk/lib/VMCore/Mangler.cpp Mon Jul 13 19:15:14 2009
@@ -129,10 +129,8 @@
}
std::string Mangler::getValueName(const GlobalValue *GV, const char *Suffix) {
- // Never mangle intrinsic functions.
- // FIXME: These should never come into the mangler.
- if (isa<Function>(GV) && cast<Function>(GV)->isIntrinsic())
- return GV->getNameStart();
+ assert((!isa<Function>(GV) || !cast<Function>(GV)->isIntrinsic()) &&
+ "Intrinsic functions cannot be mangled by Mangler");
if (GV->hasName()) {
if (GV->hasPrivateLinkage())
More information about the llvm-commits
mailing list