summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGBlocks.cpp
diff options
context:
space:
mode:
authorAlex Lorenz <arphaman@gmail.com>2017-02-24 00:21:20 +0000
committerAlex Lorenz <arphaman@gmail.com>2017-02-24 00:21:20 +0000
commit8da15b501a01097a7fdc8f661d8ac60324c0bc3c (patch)
tree56b4d3923a0df441b523239307b4316220fcd274 /clang/lib/CodeGen/CGBlocks.cpp
parent369ba753aacde99efdc26cac21a33478a565eaa6 (diff)
downloadbcm5719-llvm-8da15b501a01097a7fdc8f661d8ac60324c0bc3c.tar.gz
bcm5719-llvm-8da15b501a01097a7fdc8f661d8ac60324c0bc3c.zip
NFC, Remove commented out block of code from CGBlocks.cpp
This is a preparation clean-up commit around the code that emits block copy/dispose routines. llvm-svn: 296054
Diffstat (limited to 'clang/lib/CodeGen/CGBlocks.cpp')
-rw-r--r--clang/lib/CodeGen/CGBlocks.cpp18
1 files changed, 0 insertions, 18 deletions
diff --git a/clang/lib/CodeGen/CGBlocks.cpp b/clang/lib/CodeGen/CGBlocks.cpp
index ff4480c0d6a..312baf63447 100644
--- a/clang/lib/CodeGen/CGBlocks.cpp
+++ b/clang/lib/CodeGen/CGBlocks.cpp
@@ -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
OpenPOWER on IntegriCloud