aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/Mangle.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-09-26 22:18:22 +0000
committerAnders Carlsson <andersca@mac.com>2009-09-26 22:18:22 +0000
commitaeb85374e92619b8e4ce92ac6e30756b5053a137 (patch)
tree301849f66cf5215075635c4fe82391abadead225 /lib/CodeGen/Mangle.cpp
parentf88df8652e0726fe9eee5d78f92e3c5b34d0a537 (diff)
Handle substitutions in mangleTemplatePrefix.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82879 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/Mangle.cpp')
-rw-r--r--lib/CodeGen/Mangle.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/CodeGen/Mangle.cpp b/lib/CodeGen/Mangle.cpp
index c07d9039c0..3db736b7b4 100644
--- a/lib/CodeGen/Mangle.cpp
+++ b/lib/CodeGen/Mangle.cpp
@@ -531,10 +531,15 @@ void CXXNameMangler::mangleTemplatePrefix(const TemplateDecl *ND) {
// ::= <template-param>
// ::= <substitution>
- // FIXME: <substitution> and <template-param>
+ if (mangleSubstitution(ND))
+ return;
+
+ // FIXME: <template-param>
manglePrefix(ND->getDeclContext());
mangleUnqualifiedName(ND->getTemplatedDecl());
+
+ addSubstitution(ND);
}
void