diff options
| author | Anders Carlsson <andersca@mac.com> | 2010-06-09 02:20:01 +0000 |
|---|---|---|
| committer | Anders Carlsson <andersca@mac.com> | 2010-06-09 02:20:01 +0000 |
| commit | d4ce4e4bc0137204a865cdf228cd16a41406d16f (patch) | |
| tree | 54d0fc98e60af26d249a818cf9133d1a1d9a7ded /clang/lib/CodeGen/CodeGenModule.cpp | |
| parent | 9cdbd9dc08bda54852d05a3165a10a644134f761 (diff) | |
| download | bcm5719-llvm-d4ce4e4bc0137204a865cdf228cd16a41406d16f.tar.gz bcm5719-llvm-d4ce4e4bc0137204a865cdf228cd16a41406d16f.zip | |
Get rid of an unnecessary getMangledName overload.
llvm-svn: 105671
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
| -rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index 103024c3239..c82642eb6cf 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -184,23 +184,12 @@ void CodeGenModule::getMangledName(MangleBuffer &Buffer, GlobalDecl GD) { if (const CXXDestructorDecl *D = dyn_cast<CXXDestructorDecl>(ND)) return getMangledCXXDtorName(Buffer, D, GD.getDtorType()); - return getMangledName(Buffer, ND); -} - -/// \brief Retrieves the mangled name for the given declaration. -/// -/// If the given declaration requires a mangled name, returns an -/// const char* containing the mangled name. Otherwise, returns -/// the unmangled name. -/// -void CodeGenModule::getMangledName(MangleBuffer &Buffer, - const NamedDecl *ND) { if (!getMangleContext().shouldMangleDeclName(ND)) { assert(ND->getIdentifier() && "Attempt to mangle unnamed decl."); Buffer.setString(ND->getNameAsCString()); return; } - + getMangleContext().mangleName(ND, Buffer.getBuffer()); } |

