diff options
| author | John McCall <rjmccall@apple.com> | 2011-10-07 06:10:15 +0000 |
|---|---|---|
| committer | John McCall <rjmccall@apple.com> | 2011-10-07 06:10:15 +0000 |
| commit | f937c023bf5da08b0d218d183b0d762c60917794 (patch) | |
| tree | bcf1c52d2f5dd732fcc95d110c650e0aaba4189d /clang/lib/CodeGen | |
| parent | bf136764ae7ad1e61f703822fc0df9608bd207d7 (diff) | |
| download | bcm5719-llvm-f937c023bf5da08b0d218d183b0d762c60917794.tar.gz bcm5719-llvm-f937c023bf5da08b0d218d183b0d762c60917794.zip | |
Rename TagDecl::isDefinition -> isCompleteDefinition
for better self-documenting code, since the semantics
are subtly different from getDefinition().
llvm-svn: 141355
Diffstat (limited to 'clang/lib/CodeGen')
| -rw-r--r-- | clang/lib/CodeGen/CGRTTI.cpp | 2 | ||||
| -rw-r--r-- | clang/lib/CodeGen/CodeGenTypes.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CGRTTI.cpp b/clang/lib/CodeGen/CGRTTI.cpp index 2ad1ed39303..dbf99fa5d76 100644 --- a/clang/lib/CodeGen/CGRTTI.cpp +++ b/clang/lib/CodeGen/CGRTTI.cpp @@ -267,7 +267,7 @@ static bool ShouldUseExternalRTTIDescriptor(CodeGenModule &CGM, QualType Ty) { /// IsIncompleteClassType - Returns whether the given record type is incomplete. static bool IsIncompleteClassType(const RecordType *RecordTy) { - return !RecordTy->getDecl()->isDefinition(); + return !RecordTy->getDecl()->isCompleteDefinition(); } /// ContainsIncompleteClassType - Returns whether the given type contains an diff --git a/clang/lib/CodeGen/CodeGenTypes.cpp b/clang/lib/CodeGen/CodeGenTypes.cpp index 31aed99825a..03a15ae67ea 100644 --- a/clang/lib/CodeGen/CodeGenTypes.cpp +++ b/clang/lib/CodeGen/CodeGenTypes.cpp @@ -526,7 +526,7 @@ llvm::Type *CodeGenTypes::ConvertType(QualType T) { case Type::Enum: { const EnumDecl *ED = cast<EnumType>(Ty)->getDecl(); - if (ED->isDefinition() || ED->isFixed()) + if (ED->isCompleteDefinition() || ED->isFixed()) return ConvertType(ED->getIntegerType()); // Return a placeholder 'i32' type. This can be changed later when the // type is defined (see UpdateCompletedType), but is likely to be the @@ -579,7 +579,7 @@ llvm::StructType *CodeGenTypes::ConvertRecordDeclType(const RecordDecl *RD) { // If this is still a forward declaration, or the LLVM type is already // complete, there's nothing more to do. RD = RD->getDefinition(); - if (RD == 0 || !RD->isDefinition() || !Ty->isOpaque()) + if (RD == 0 || !RD->isCompleteDefinition() || !Ty->isOpaque()) return Ty; // If converting this type would cause us to infinitely loop, don't do it! |

