diff options
author | Alexey Bader <alexey.bader@intel.com> | 2017-06-20 14:30:18 +0000 |
---|---|---|
committer | Alexey Bader <alexey.bader@intel.com> | 2017-06-20 14:30:18 +0000 |
commit | 364a11651ed58d8ed8a30169ac179bb416d67c6b (patch) | |
tree | 53a9a4fe24d8f19c5e5ce06e9b1e593a93df2634 /clang/lib/CodeGen/CodeGenModule.h | |
parent | 9149e30f36c5502e321f5ef3672ca47daaac2d45 (diff) | |
download | bcm5719-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.h | 3 |
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(); |