diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-11-21 09:14:52 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-11-21 09:14:52 +0000 |
commit | e949e6cced1079dbb6eaa7364e6fd5c65864e4c9 (patch) | |
tree | 587d84bdbd011589f6c23c9123fd206189ad693b /clang/lib/CodeGen/Mangle.h | |
parent | 161ade4455fd8bccff40f685c91463a7221f7ece (diff) | |
download | bcm5719-llvm-e949e6cced1079dbb6eaa7364e6fd5c65864e4c9.tar.gz bcm5719-llvm-e949e6cced1079dbb6eaa7364e6fd5c65864e4c9.zip |
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.
llvm-svn: 89555
Diffstat (limited to 'clang/lib/CodeGen/Mangle.h')
-rw-r--r-- | clang/lib/CodeGen/Mangle.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/Mangle.h b/clang/lib/CodeGen/Mangle.h index 0c237f810a4..edbbff51619 100644 --- a/clang/lib/CodeGen/Mangle.h +++ b/clang/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, |