diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2011-01-13 18:57:25 +0000 |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2011-01-13 18:57:25 +0000 |
commit | 0ff0b3762766d4e2d13a76cd9dea080195b73a5d (patch) | |
tree | 05ba8dfe749d5b6669bcebaded7354f5465f8194 /clang/lib/CodeGen/CGDecl.cpp | |
parent | 018778af3dac8e1930c59768bbbd2db41307fe1f (diff) | |
download | bcm5719-llvm-0ff0b3762766d4e2d13a76cd9dea080195b73a5d.tar.gz bcm5719-llvm-0ff0b3762766d4e2d13a76cd9dea080195b73a5d.zip |
Move name mangling support from CodeGen to AST. In the
process, perform a number of refactorings:
- Move MiscNameMangler member functions to MangleContext
- Remove GlobalDecl dependency from MangleContext
- Make MangleContext abstract and move Itanium/Microsoft functionality
to their own classes/files
- Implement ASTContext::createMangleContext and have CodeGen use it
No (intended) functionality change.
llvm-svn: 123386
Diffstat (limited to 'clang/lib/CodeGen/CGDecl.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGDecl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGDecl.cpp b/clang/lib/CodeGen/CGDecl.cpp index 77984b11cca..16a3a196bbb 100644 --- a/clang/lib/CodeGen/CGDecl.cpp +++ b/clang/lib/CodeGen/CGDecl.cpp @@ -148,7 +148,7 @@ static std::string GetStaticDeclName(CodeGenFunction &CGF, const VarDecl &D, const DeclContext *DC = ND->getDeclContext(); if (const BlockDecl *BD = dyn_cast<BlockDecl>(DC)) { MangleBuffer Name; - CGM.getMangledName(GlobalDecl(), Name, BD); + CGM.getBlockMangledName(GlobalDecl(), Name, BD); ContextName = Name.getString(); } else |