Skip to content

Commit

Permalink
[CodeGen] Remove unused declaration/function BlockCaptureManagedEntity
Browse files Browse the repository at this point in the history
The last use was removed by:

  commit e5df9cc
  Author: Akira Hatanaka <ahatanaka@apple.com>
  Date:   Sat Jan 8 13:27:28 2022 -0800
  • Loading branch information
kazutakahirata committed Jul 31, 2023
1 parent 14e0a67 commit c652525
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions clang/lib/CodeGen/CGBlocks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit c652525

Please sign in to comment.