aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.h
diff options
context:
space:
mode:
authorVitaly Buka <vitalybuka@google.com>2016-10-26 01:59:57 +0000
committerVitaly Buka <vitalybuka@google.com>2016-10-26 01:59:57 +0000
commit1c94332e7acb3575e78f110a3ff4e8c86f342a03 (patch)
treea050d21f381864b37b1d90314cbb51b9f8a1cafd /clang/lib/CodeGen/CodeGenFunction.h
parent8b6af7a9d33af51abdb829350d942e3588faf37c (diff)
downloadllvm-1c94332e7acb3575e78f110a3ff4e8c86f342a03.zip
llvm-1c94332e7acb3575e78f110a3ff4e8c86f342a03.tar.gz
llvm-1c94332e7acb3575e78f110a3ff4e8c86f342a03.tar.bz2
[CodeGen] Move shouldEmitLifetimeMarkers into more convenient place
Summary: D24693 will need access to it from other places Reviewers: eugenis Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D24695 llvm-svn: 285158
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r--clang/lib/CodeGen/CodeGenFunction.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h
index 2782f4b..123c040 100644
--- a/clang/lib/CodeGen/CodeGenFunction.h
+++ b/clang/lib/CodeGen/CodeGenFunction.h
@@ -1186,6 +1186,9 @@ private:
llvm::BasicBlock *TerminateHandler;
llvm::BasicBlock *TrapBB;
+ /// True if we need emit the life-time markers.
+ const bool ShouldEmitLifetimeMarkers;
+
/// Add a kernel metadata node to the named metadata node 'opencl.kernels'.
/// In the kernel metadata node, reference the kernel function and metadata
/// nodes for its optional attribute qualifiers (OpenCL 1.1 6.7.2):