summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Naroff <snaroff@apple.com>2008-09-04 15:31:07 +0000
committerSteve Naroff <snaroff@apple.com>2008-09-04 15:31:07 +0000
commit991e99d980e5433d88137a0bfed7dae62ffe0eaa (patch)
treec43be5beca32ff2075d2e03af65a6be384fc60e3
parent081c7422b24175b377083ce882da98244ea8c7e2 (diff)
downloadbcm5719-llvm-991e99d980e5433d88137a0bfed7dae62ffe0eaa.tar.gz
bcm5719-llvm-991e99d980e5433d88137a0bfed7dae62ffe0eaa.zip
Fix a handful of typos (closure->block) to avoid confusion.
llvm-svn: 55768
-rw-r--r--clang/lib/AST/ASTContext.cpp2
-rw-r--r--clang/lib/AST/Expr.cpp2
-rw-r--r--clang/lib/Sema/Sema.h6
3 files changed, 5 insertions, 5 deletions
diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp
index b84b958fb03..2264bca0f9c 100644
--- a/clang/lib/AST/ASTContext.cpp
+++ b/clang/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/clang/lib/AST/Expr.cpp b/clang/lib/AST/Expr.cpp
index 1ab2220387f..f72ff4f6ca9 100644
--- a/clang/lib/AST/Expr.cpp
+++ b/clang/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/clang/lib/Sema/Sema.h b/clang/lib/Sema/Sema.h
index 320f3ac2bc4..ce749e3f9a8 100644
--- a/clang/lib/Sema/Sema.h
+++ b/clang/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,
OpenPOWER on IntegriCloud