]> granicus.if.org Git - clang/commitdiff
NFC, Remove commented out block of code from CGBlocks.cpp
authorAlex Lorenz <arphaman@gmail.com>
Fri, 24 Feb 2017 00:21:20 +0000 (00:21 +0000)
committerAlex Lorenz <arphaman@gmail.com>
Fri, 24 Feb 2017 00:21:20 +0000 (00:21 +0000)
This is a preparation clean-up commit around the code that emits
block copy/dispose routines.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@296054 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGBlocks.cpp

index ff4480c0d6a8cbde1bf0dbd94c9a50956005667f..312baf6344724b1757acbec2bc1a0ceeab406148 100644 (file)
@@ -1373,24 +1373,6 @@ CodeGenFunction::GenerateBlockFunction(GlobalDecl GD,
   return fn;
 }
 
-/*
-    notes.push_back(HelperInfo());
-    HelperInfo &note = notes.back();
-    note.index = capture.getIndex();
-    note.RequiresCopying = (ci->hasCopyExpr() || BlockRequiresCopying(type));
-    note.cxxbar_import = ci->getCopyExpr();
-
-    if (ci->isByRef()) {
-      note.flag = BLOCK_FIELD_IS_BYREF;
-      if (type.isObjCGCWeak())
-        note.flag |= BLOCK_FIELD_IS_WEAK;
-    } else if (type->isBlockPointerType()) {
-      note.flag = BLOCK_FIELD_IS_BLOCK;
-    } else {
-      note.flag = BLOCK_FIELD_IS_OBJECT;
-    }
- */
-
 /// Generate the copy-helper function for a block closure object:
 ///   static void block_copy_helper(block_t *dst, block_t *src);
 /// The runtime will have previously initialized 'dst' by doing a