diff options
author | Yaxun Liu <Yaxun.Liu@amd.com> | 2016-12-15 08:09:08 +0000 |
---|---|---|
committer | Yaxun Liu <Yaxun.Liu@amd.com> | 2016-12-15 08:09:08 +0000 |
commit | 402804b6d67c880c97e575342189025fe28c0f81 (patch) | |
tree | f05c793f67afb7f12b82a43b0926afd04c0ae4ec /clang/lib/CodeGen/CodeGenModule.h | |
parent | 61ef150d53e4a9a3f14f614991f8132a5bb4eedc (diff) | |
download | llvm-402804b6d67c880c97e575342189025fe28c0f81.zip llvm-402804b6d67c880c97e575342189025fe28c0f81.tar.gz llvm-402804b6d67c880c97e575342189025fe28c0f81.tar.bz2 |
Re-commit r289252 and r289285, and fix PR31374
llvm-svn: 289787
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h index d4c096e..f26c92d 100644 --- a/clang/lib/CodeGen/CodeGenModule.h +++ b/clang/lib/CodeGen/CodeGenModule.h @@ -1156,6 +1156,11 @@ public: llvm::Value * createOpenCLIntToSamplerConversion(const Expr *E, CodeGenFunction &CGF); + /// Get target specific null pointer. + /// \param T is the LLVM type of the null pointer. + /// \param QT is the clang QualType of the null pointer. + llvm::Constant *getNullPointer(llvm::PointerType *T, QualType QT); + private: llvm::Constant * GetOrCreateLLVMFunction(StringRef MangledName, llvm::Type *Ty, GlobalDecl D, |