summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.h
diff options
context:
space:
mode:
authorAlexey Bader <alexey.bader@intel.com>2017-06-20 14:30:18 +0000
committerAlexey Bader <alexey.bader@intel.com>2017-06-20 14:30:18 +0000
commit364a11651ed58d8ed8a30169ac179bb416d67c6b (patch)
tree53a9a4fe24d8f19c5e5ce06e9b1e593a93df2634 /clang/lib/CodeGen/CodeGenModule.h
parent9149e30f36c5502e321f5ef3672ca47daaac2d45 (diff)
downloadbcm5719-llvm-364a11651ed58d8ed8a30169ac179bb416d67c6b.tar.gz
bcm5719-llvm-364a11651ed58d8ed8a30169ac179bb416d67c6b.zip
[OpenCL] Fix OpenCL and SPIR version metadata generation.
Summary: OpenCL and SPIR version metadata must be generated once per module instead of once per mangled global value. Reviewers: Anastasia, yaxunl Reviewed By: Anastasia Subscribers: ahatanak, cfe-commits Differential Revision: https://reviews.llvm.org/D34235 llvm-svn: 305796
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h
index 59e56a6ba19..c5f1a2b409e 100644
--- a/clang/lib/CodeGen/CodeGenModule.h
+++ b/clang/lib/CodeGen/CodeGenModule.h
@@ -1321,6 +1321,9 @@ private:
/// Emits target specific Metadata for global declarations.
void EmitTargetMetadata();
+ /// Emits OpenCL specific Metadata e.g. OpenCL version.
+ void EmitOpenCLMetadata();
+
/// Emit the llvm.gcov metadata used to tell LLVM where to emit the .gcno and
/// .gcda files in a way that persists in .bc files.
void EmitCoverageFile();
OpenPOWER on IntegriCloud