projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c4b2d4a
)
the mangler can never mangle intrinsics, don't allow this.
author
Chris Lattner
<sabre@nondot.org>
Tue, 14 Jul 2009 00:15:14 +0000
(
00:15
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Tue, 14 Jul 2009 00:15:14 +0000
(
00:15
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75564
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/VMCore/Mangler.cpp
patch
|
blob
|
history
diff --git
a/lib/VMCore/Mangler.cpp
b/lib/VMCore/Mangler.cpp
index 6e838e395cb5d4ffae8b89cbfe2ff031669fe46e..a01f0f1540e0282f99a20d74ba00d3503b42f372 100644
(file)
--- a/
lib/VMCore/Mangler.cpp
+++ b/
lib/VMCore/Mangler.cpp
@@
-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) {
- // 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())