aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CGBlocks.cpp
diff options
context:
space:
mode:
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,