From bfdcae678d44906293e21c0cddc6537f3ee8b5a4 Mon Sep 17 00:00:00 2001 From: Steve Naroff Date: Thu, 4 Sep 2008 15:31:07 +0000 Subject: [PATCH] Fix a handful of typos (closure->block) to avoid confusion. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55768 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/AST/ASTContext.cpp | 2 +- lib/AST/Expr.cpp | 2 +- lib/Sema/Sema.h | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/AST/ASTContext.cpp b/lib/AST/ASTContext.cpp index b84b958fb0..2264bca0f9 100644 --- a/lib/AST/ASTContext.cpp +++ b/lib/AST/ASTContext.cpp @@ -1768,7 +1768,7 @@ bool ASTContext::isObjCObjectPointerType(QualType Ty) const { //===----------------------------------------------------------------------===// /// typesAreBlockCompatible - This routine is called when comparing two -/// closure types. Types must be strictly compatible here. +/// block types. Types must be strictly compatible here. bool ASTContext::typesAreBlockCompatible(QualType lhs, QualType rhs) { if (lhs.getCVRQualifiers() != rhs.getCVRQualifiers()) return false; diff --git a/lib/AST/Expr.cpp b/lib/AST/Expr.cpp index 1ab2220387..f72ff4f6ca 100644 --- a/lib/AST/Expr.cpp +++ b/lib/AST/Expr.cpp @@ -282,7 +282,7 @@ InitListExpr::InitListExpr(SourceLocation lbraceloc, InitExprs.push_back(initexprs[i]); } -/// getFunctionType - Return the underlying function type for this closure. +/// getFunctionType - Return the underlying function type for this block. /// const FunctionType *BlockExpr::getFunctionType() const { return getType()->getAsBlockPointerType()-> diff --git a/lib/Sema/Sema.h b/lib/Sema/Sema.h index 320f3ac2bc..ce749e3f9a 100644 --- a/lib/Sema/Sema.h +++ b/lib/Sema/Sema.h @@ -817,15 +817,15 @@ private: /// c/v/r qualifiers, which we accept as an extension. CompatiblePointerDiscardsQualifiers, - /// IntToBlockPointer - The assignment converts an int to a closure + /// IntToBlockPointer - The assignment converts an int to a block /// pointer. We disallow this. IntToBlockPointer, - /// IncompatibleBlockPointer - The assignment is between two closure + /// IncompatibleBlockPointer - The assignment is between two block /// pointers types that are not compatible. IncompatibleBlockPointer, - /// BlockVoidPointer - The assignment is between a closure pointer and + /// BlockVoidPointer - The assignment is between a block pointer and /// void*, we accept for now. BlockVoidPointer,