diff options
author | Chris Lattner <sabre@nondot.org> | 2008-11-24 04:00:27 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-11-24 04:00:27 +0000 |
commit | 1cbaacc4a0f05f4c6c54417ca3090aa3974b095a (patch) | |
tree | f9f928bccbca3b4e97d423000d12e6bd5ebbb6bb /clang/lib/AST/DeclarationName.cpp | |
parent | 86d7d91366f5c8f7ae17521abf630ddfd9b4d40e (diff) | |
download | bcm5719-llvm-1cbaacc4a0f05f4c6c54417ca3090aa3974b095a.tar.gz bcm5719-llvm-1cbaacc4a0f05f4c6c54417ca3090aa3974b095a.zip |
Migrate some stuff from NamedDecl::getName() to
NamedDecl::getNameAsString() to make it more explicit.
llvm-svn: 59937
Diffstat (limited to 'clang/lib/AST/DeclarationName.cpp')
-rw-r--r-- | clang/lib/AST/DeclarationName.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/AST/DeclarationName.cpp b/clang/lib/AST/DeclarationName.cpp index ed4b7c6105d..649b092db01 100644 --- a/clang/lib/AST/DeclarationName.cpp +++ b/clang/lib/AST/DeclarationName.cpp @@ -125,7 +125,7 @@ std::string DeclarationName::getAsString() const { case CXXConstructorName: { QualType ClassType = getCXXNameType(); if (const RecordType *ClassRec = ClassType->getAsRecordType()) - return ClassRec->getDecl()->getName(); + return ClassRec->getDecl()->getNameAsString(); return ClassType.getAsString(); } @@ -133,7 +133,7 @@ std::string DeclarationName::getAsString() const { std::string Result = "~"; QualType Type = getCXXNameType(); if (const RecordType *Rec = Type->getAsRecordType()) - Result += Rec->getDecl()->getName(); + Result += Rec->getDecl()->getNameAsString(); else Result += Type.getAsString(); return Result; @@ -160,7 +160,7 @@ std::string DeclarationName::getAsString() const { std::string Result = "operator "; QualType Type = getCXXNameType(); if (const RecordType *Rec = Type->getAsRecordType()) - Result += Rec->getDecl()->getName(); + Result += Rec->getDecl()->getNameAsString(); else Result += Type.getAsString(); return Result; |