[clang] c652525 - [CodeGen] Remove unused declaration/function BlockCaptureManagedEntity

Kazu Hirata via cfe-commits cfe-commits at lists.llvm.org
Sun Jul 30 21:22:32 PDT 2023


Author: Kazu Hirata
Date: 2023-07-30T21:22:26-07:00
New Revision: c652525295f6b4eac0f4a38f16ca565b1187d17d

URL: https://github.com/llvm/llvm-project/commit/c652525295f6b4eac0f4a38f16ca565b1187d17d
DIFF: https://github.com/llvm/llvm-project/commit/c652525295f6b4eac0f4a38f16ca565b1187d17d.diff

LOG: [CodeGen] Remove unused declaration/function BlockCaptureManagedEntity

The last use was removed by:

  commit e5df9cc098b554ebb066792e40cbde6feddc57bc
  Author: Akira Hatanaka <ahatanaka at apple.com>
  Date:   Sat Jan 8 13:27:28 2022 -0800

Added: 
    

Modified: 
    clang/lib/CodeGen/CGBlocks.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/CodeGen/CGBlocks.cpp b/clang/lib/CodeGen/CGBlocks.cpp
index cfbe3272196e35..2023be8838f8a7 100644
--- a/clang/lib/CodeGen/CGBlocks.cpp
+++ b/clang/lib/CodeGen/CGBlocks.cpp
@@ -66,28 +66,6 @@ static llvm::Constant *buildDisposeHelper(CodeGenModule &CGM,
 
 namespace {
 
-/// Represents a captured entity that requires extra operations in order for
-/// this entity to be copied or destroyed correctly.
-struct BlockCaptureManagedEntity {
-  BlockCaptureEntityKind CopyKind, DisposeKind;
-  BlockFieldFlags CopyFlags, DisposeFlags;
-  const BlockDecl::Capture *CI;
-  const CGBlockInfo::Capture *Capture;
-
-  BlockCaptureManagedEntity(BlockCaptureEntityKind CopyType,
-                            BlockCaptureEntityKind DisposeType,
-                            BlockFieldFlags CopyFlags,
-                            BlockFieldFlags DisposeFlags,
-                            const BlockDecl::Capture &CI,
-                            const CGBlockInfo::Capture &Capture)
-      : CopyKind(CopyType), DisposeKind(DisposeType), CopyFlags(CopyFlags),
-        DisposeFlags(DisposeFlags), CI(&CI), Capture(&Capture) {}
-
-  bool operator<(const BlockCaptureManagedEntity &Other) const {
-    return Capture->getOffset() < Other.Capture->getOffset();
-  }
-};
-
 enum class CaptureStrKind {
   // String for the copy helper.
   CopyHelper,


        


More information about the cfe-commits mailing list