diff options
author | Anders Carlsson <andersca@mac.com> | 2009-09-26 22:18:22 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-09-26 22:18:22 +0000 |
commit | aeb85374e92619b8e4ce92ac6e30756b5053a137 (patch) | |
tree | 301849f66cf5215075635c4fe82391abadead225 /lib/CodeGen/Mangle.cpp | |
parent | f88df8652e0726fe9eee5d78f92e3c5b34d0a537 (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.cpp | 7 |
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 |