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 | d9d22dd9c94618490dbffb0e2caf222530ca39d3 (patch) | |
tree | b93ae748c2c5dc85678512aa3c958323b717ae26 /lib/Sema/SemaDeclObjC.cpp | |
parent | e8a32b855ce4e8580a191f8d29d2f3f459834302 (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59947 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaDeclObjC.cpp')
-rw-r--r-- | lib/Sema/SemaDeclObjC.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Sema/SemaDeclObjC.cpp b/lib/Sema/SemaDeclObjC.cpp index 9141cb5b9e..4d4c82be69 100644 --- a/lib/Sema/SemaDeclObjC.cpp +++ b/lib/Sema/SemaDeclObjC.cpp @@ -75,7 +75,7 @@ ActOnStartClassInterface(SourceLocation AtInterfaceLoc, if (IDecl) { // Class already seen. Is it a forward declaration? if (!IDecl->isForwardDecl()) { - Diag(AtInterfaceLoc, diag::err_duplicate_class_def) << IDecl->getName(); + Diag(AtInterfaceLoc, diag::err_duplicate_class_def)<<IDecl->getDeclName(); Diag(IDecl->getLocation(), diag::note_previous_definition); // Return the previous class interface. @@ -1264,7 +1264,7 @@ Sema::DeclTy *Sema::ActOnPropertyImplDecl(SourceLocation AtLoc, // Look for this property declaration in the @implementation's @interface property = IDecl->FindPropertyDeclaration(PropertyId); if (!property) { - Diag(PropertyLoc, diag::error_bad_property_decl) << IDecl->getName(); + Diag(PropertyLoc, diag::error_bad_property_decl) << IDecl->getDeclName(); return 0; } } @@ -1289,7 +1289,7 @@ Sema::DeclTy *Sema::ActOnPropertyImplDecl(SourceLocation AtLoc, property = Category->FindPropertyDeclaration(PropertyId); if (!property) { Diag(PropertyLoc, diag::error_bad_category_property_decl) - << Category->getName(); + << Category->getDeclName(); return 0; } } @@ -1316,7 +1316,7 @@ Sema::DeclTy *Sema::ActOnPropertyImplDecl(SourceLocation AtLoc, if (PropType != IvarType) { if (CheckAssignmentConstraints(PropType, IvarType) != Compatible) { Diag(PropertyLoc, diag::error_property_ivar_type) - << property->getName() << Ivar->getName(); + << property->getDeclName() << Ivar->getDeclName(); return 0; } } |