diff options
author | Arthur Eubanks <aeubanks@google.com> | 2021-05-17 10:07:28 -0700 |
---|---|---|
committer | Arthur Eubanks <aeubanks@google.com> | 2021-05-17 18:41:17 -0700 |
commit | 9f7d552cff8d62250461ef396d9d4ffab4ecd378 (patch) | |
tree | 5489f251d74eba226bef85d6651cb7bd773c3772 /clang/lib/CodeGen/CodeGenModule.h | |
parent | cc64ece77dddfa7aa590b6d69fe026fcd64d00cf (diff) | |
download | llvm-9f7d552cff8d62250461ef396d9d4ffab4ecd378.zip llvm-9f7d552cff8d62250461ef396d9d4ffab4ecd378.tar.gz llvm-9f7d552cff8d62250461ef396d9d4ffab4ecd378.tar.bz2 |
[NFC] Pass GV value type instead of pointer type to GetOrCreateLLVMGlobal
For opaque pointers, to avoid PointerType::getElementType().
Reviewed By: dblaikie
Differential Revision: https://reviews.llvm.org/D102638
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h index 27ea878..47dc6f4 100644 --- a/clang/lib/CodeGen/CodeGenModule.h +++ b/clang/lib/CodeGen/CodeGenModule.h @@ -1477,11 +1477,10 @@ private: const FunctionDecl *FD); void UpdateMultiVersionNames(GlobalDecl GD, const FunctionDecl *FD); - llvm::Constant *GetOrCreateLLVMGlobal(StringRef MangledName, - llvm::PointerType *PTy, - const VarDecl *D, - ForDefinition_t IsForDefinition - = NotForDefinition); + llvm::Constant * + GetOrCreateLLVMGlobal(StringRef MangledName, llvm::Type *Ty, + unsigned AddrSpace, const VarDecl *D, + ForDefinition_t IsForDefinition = NotForDefinition); bool GetCPUAndFeaturesAttributes(GlobalDecl GD, llvm::AttrBuilder &AttrBuilder); |