mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
the mangler can never mangle intrinsics, don't allow this.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75564 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -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())
|
||||||
|
Reference in New Issue
Block a user