From 9a8822bb154b792cdb18fe4cfb34480ca0ec7661 Mon Sep 17 00:00:00 2001 From: Anders Carlsson Date: Wed, 9 Jun 2010 02:36:32 +0000 Subject: Get rid of getMangledCXXCtorName and getMangledCXXDtorName. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105673 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CodeGenModule.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'lib/CodeGen/CodeGenModule.cpp') diff --git a/lib/CodeGen/CodeGenModule.cpp b/lib/CodeGen/CodeGenModule.cpp index c82642eb6c..90abd439b1 100644 --- a/lib/CodeGen/CodeGenModule.cpp +++ b/lib/CodeGen/CodeGenModule.cpp @@ -180,9 +180,11 @@ void CodeGenModule::getMangledName(MangleBuffer &Buffer, GlobalDecl GD) { const NamedDecl *ND = cast(GD.getDecl()); if (const CXXConstructorDecl *D = dyn_cast(ND)) - return getMangledCXXCtorName(Buffer, D, GD.getCtorType()); + return getMangleContext().mangleCXXCtor(D, GD.getCtorType(), + Buffer.getBuffer()); if (const CXXDestructorDecl *D = dyn_cast(ND)) - return getMangledCXXDtorName(Buffer, D, GD.getDtorType()); + return getMangleContext().mangleCXXDtor(D, GD.getDtorType(), + Buffer.getBuffer()); if (!getMangleContext().shouldMangleDeclName(ND)) { assert(ND->getIdentifier() && "Attempt to mangle unnamed decl."); @@ -193,6 +195,10 @@ void CodeGenModule::getMangledName(MangleBuffer &Buffer, GlobalDecl GD) { getMangleContext().mangleName(ND, Buffer.getBuffer()); } +void CodeGenModule::getMangledName(MangleBuffer &Buffer, const BlockDecl *BD) { + getMangleContext().mangleBlock(BD, Buffer.getBuffer()); +} + llvm::GlobalValue *CodeGenModule::GetGlobalValue(llvm::StringRef Name) { return getModule().getNamedValue(Name); } -- cgit v1.2.3-70-g09d2