diff options
author | Chris Lattner <sabre@nondot.org> | 2008-11-24 05:29:24 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-11-24 05:29:24 +0000 |
commit | f3d3faeca60a7fab63ee03bf2b04d65d8640374e (patch) | |
tree | 7288d8712306cc3bace620f54a12e161892f65c4 /clang/lib/CodeGen/CGDebugInfo.cpp | |
parent | a7c5eb72a0c7f8dd0fbc6c0d1abb3bd4b439e312 (diff) | |
download | bcm5719-llvm-f3d3faeca60a7fab63ee03bf2b04d65d8640374e.tar.gz bcm5719-llvm-f3d3faeca60a7fab63ee03bf2b04d65d8640374e.zip |
Rename NamedDecl::getName() to getNameAsString(). Replace a bunch of
uses of getName() with uses of getDeclName(). This upgrades a bunch of
diags to take DeclNames instead of std::strings.
This also tweaks a couple of diagnostics to be cleaner and changes
CheckInitializerTypes/PerformInitializationByConstructor to pass
around DeclarationNames instead of std::strings.
llvm-svn: 59947
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index 444ee7c4005..e862808d12a 100644 --- a/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/clang/lib/CodeGen/CGDebugInfo.cpp @@ -291,7 +291,7 @@ llvm::DIType CGDebugInfo::CreateType(const EnumType *Ty, // Create DIEnumerator elements for each enumerator. for (EnumConstantDecl *Elt = Decl->getEnumConstantList(); Elt; Elt = dyn_cast_or_null<EnumConstantDecl>(Elt->getNextDeclarator())) { - Enumerators.push_back(DebugFactory.CreateEnumerator(Elt->getName(), + Enumerators.push_back(DebugFactory.CreateEnumerator(Elt->getNameAsString(), Elt->getInitVal().getZExtValue())); } @@ -484,7 +484,7 @@ void CGDebugInfo::EmitDeclare(const VarDecl *Decl, unsigned Tag, // Create the descriptor for the variable. llvm::DIVariable D = - DebugFactory.CreateVariable(Tag, RegionStack.back(), Decl->getName(), + DebugFactory.CreateVariable(Tag, RegionStack.back(),Decl->getNameAsString(), Unit, Line, getOrCreateType(Decl->getType(), Unit)); // Insert an llvm.dbg.declare into the current block. |