aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CGBlocks.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2023-07-30 21:22:26 -0700
committerKazu Hirata <kazu@google.com>2023-07-30 21:22:26 -0700
commitc652525295f6b4eac0f4a38f16ca565b1187d17d (patch)
treeeeb22add85ea19156fc655e94043438c2d7b6303 /clang/lib/CodeGen/CGBlocks.cpp
parent14e0a67a2d43b6e44032e8df788f43822da6fd71 (diff)
downloadllvm-c652525295f6b4eac0f4a38f16ca565b1187d17d.zip
llvm-c652525295f6b4eac0f4a38f16ca565b1187d17d.tar.gz
llvm-c652525295f6b4eac0f4a38f16ca565b1187d17d.tar.bz2
[CodeGen] Remove unused declaration/function BlockCaptureManagedEntity
The last use was removed by: commit e5df9cc098b554ebb066792e40cbde6feddc57bc Author: Akira Hatanaka <ahatanaka@apple.com> Date: Sat Jan 8 13:27:28 2022 -0800
Diffstat (limited to 'clang/lib/CodeGen/CGBlocks.cpp')
-rw-r--r--clang/lib/CodeGen/CGBlocks.cpp22
1 files changed, 0 insertions, 22 deletions
diff --git a/clang/lib/CodeGen/CGBlocks.cpp b/clang/lib/CodeGen/CGBlocks.cpp
index cfbe327..2023be8 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,