aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/Mangle.h
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-11-21 09:14:52 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-11-21 09:14:52 +0000
commitf981bf84ad7745861bc9c971f46417527e1e5db5 (patch)
tree3fbe233cb30c77d0a3093b686ae3c34f2dedc6ea /lib/CodeGen/Mangle.h
parentc02ab4c76d7f8e672cda266436d64dd23bd2ad26 (diff)
Mangler: Lift shouldMangleDeclName predicate out of CXXNameMangler::mangle.
- Sometimes we have to mangle things we wouldn't normally (e.g., because they appear in a template expression). - This also tidies up the predicate to be more obvious what is getting mangled. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89555 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/Mangle.h')
-rw-r--r--lib/CodeGen/Mangle.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/CodeGen/Mangle.h b/lib/CodeGen/Mangle.h
index 0c237f810a..edbbff5161 100644
--- a/lib/CodeGen/Mangle.h
+++ b/lib/CodeGen/Mangle.h
@@ -58,7 +58,9 @@ public:
/// @name Mangler Entry Points
/// @{
- bool mangleName(const NamedDecl *D, llvm::SmallVectorImpl<char> &);
+ bool shouldMangleDeclName(const NamedDecl *D);
+
+ void mangleName(const NamedDecl *D, llvm::SmallVectorImpl<char> &);
void mangleThunk(const FunctionDecl *FD, int64_t n, int64_t vn,
llvm::SmallVectorImpl<char> &);
void mangleCovariantThunk(const FunctionDecl *FD, int64_t nv_t, int64_t v_t,