the mangler can never mangle intrinsics, don't allow this.
llvm-svn: 75564
This commit is contained in:
parent
2976318bb2
commit
05f1976aba
|
|
@ -129,10 +129,8 @@ std::string Mangler::makeNameProper(const std::string &X, const char *Prefix,
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string Mangler::getValueName(const GlobalValue *GV, const char *Suffix) {
|
std::string Mangler::getValueName(const GlobalValue *GV, const char *Suffix) {
|
||||||
// Never mangle intrinsic functions.
|
assert((!isa<Function>(GV) || !cast<Function>(GV)->isIntrinsic()) &&
|
||||||
// FIXME: These should never come into the mangler.
|
"Intrinsic functions cannot be mangled by Mangler");
|
||||||
if (isa<Function>(GV) && cast<Function>(GV)->isIntrinsic())
|
|
||||||
return GV->getNameStart();
|
|
||||||
|
|
||||||
if (GV->hasName()) {
|
if (GV->hasName()) {
|
||||||
if (GV->hasPrivateLinkage())
|
if (GV->hasPrivateLinkage())
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue